Skip to content

Commit 7b1d667

Browse files
committed
test runner: stop if any step failed
There's no point in continuing if, say, spawning a process fails. Also, the validation that we perform for a given step depends on the previous steps having succeeded.
1 parent 7d81a7a commit 7b1d667

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test-runner/wasi_test_runner/runtime_adapter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def run_test(self, config: Config, argv: List[str]) -> Result:
117117
cleanup_dirs = None
118118
try:
119119
for op in config.operations:
120+
if result.failures:
121+
break
122+
120123
match op:
121124
case Run(_, _, dirs):
122125
_cleanup_test_output(dirs)

0 commit comments

Comments
 (0)