From de479b8b3879884a9f9de1370b21b2126e2594ac Mon Sep 17 00:00:00 2001 From: mptyl Date: Tue, 11 Aug 2026 20:00:03 +0200 Subject: [PATCH] fix: verify the no-Evidence skip on the evidence command --- backend/scripts/p2-acceptance.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/scripts/p2-acceptance.mjs b/backend/scripts/p2-acceptance.mjs index d0613680..9022bcc5 100644 --- a/backend/scripts/p2-acceptance.mjs +++ b/backend/scripts/p2-acceptance.mjs @@ -1249,7 +1249,9 @@ async function realChecks(ctx) { "--reviewed-candidates", `sha256:${"0".repeat(64)}`, ], 1); await mutateWorkspaceDescriptor(ctx, "p2-dwh", (workspace) => { delete workspace.evidence; }, "Remove P2 Evidence"); - const noEvidence = await runThothctlJson(ctx, "negative-no-evidence-run", ["workspace", "preprocess", "run", "--workspace", "p2-dwh"], 0); + const noEvidence = await runThothctlJson(ctx, "negative-no-evidence-run", ["workspace", "preprocess", "evidence", "--workspace", "p2-dwh"], 0); + assert(["succeeded", "unchanged"].includes(noEvidence.payload.status), "no-evidence evidence did not skip"); + assert(Array.isArray(noEvidence.payload.warnings) && noEvidence.payload.warnings.length > 0, "no-evidence warning missing"); const conflict = await runThothctlJson(ctx, "negative-revision-conflict", ["workspace", "preprocess", "run", "--workspace", "p2-dwh", "--resume", state.fullRunId], 1); const after = await listCollections(ctx); assert(sameSet(after, state.collectionsBefore), "product path created or removed a collection");