test: distinguish safe preflight failures from uncertain native results
This commit is contained in:
1 parent
d832a1c736
commit
29ea67c35e
1 file changed
+4
-1
@@ -93,7 +93,10 @@ def run_scenario(output: Path, *, projects=3, sheets=2, rules=2, behavior='succe
|
||||
if state != 'saved_ok':
|
||||
message = 'Injected worker failure for regression; no native CAD operation.'
|
||||
with (evidence / 'status.tsv').open('a', encoding='utf-8') as stream:
|
||||
stream.write(f'{job}\tawaiting_native_replace\t\tcaptured\n')
|
||||
# failure_continue models a preflight rejection before any
|
||||
# native mutation. Awaiting + missing native evidence must stop.
|
||||
if state != 'batch_failed':
|
||||
stream.write(f'{job}\tawaiting_native_replace\t\tcaptured\n')
|
||||
stream.write(f'{job}\t{state}\tbatch_closed\t{message}\n')
|
||||
if behavior == 'pause_resume' and len(calls) == 2:
|
||||
stop.set()
|
||||
|
||||
Reference in new issue
Block a user