Prechádzať zdrojové kódy

fix: expectMissing must reject any non-skipped status, not just completed

fszontagh 1 mesiac pred
rodič
commit
202e0efdcc
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      scripts/verify-node.py

+ 4 - 2
scripts/verify-node.py

@@ -104,8 +104,10 @@ def main():
 
         for node_id in case.get("expectMissing", []):
             got = by_id.get(node_id)
-            if got is not None and got.get("status") == "completed":
-                failures.append(f"{node_id}: ran, but should not have")
+            if got is not None and got.get("status") != "skipped":
+                failures.append(
+                    f"{node_id}: ran, but should not have (status: {got.get('status')!r})"
+                )
 
         print(f"case: {case['name']}  execution: {execution_id}  status: {execution.get('status')}")
         for node_id, node in sorted(by_id.items()):