You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "$_pass_line"-ne -1 ]] && [[ "$_pass_line"-ge"$red_zone_line" ]];then
518
+
echo"STALE RED MARKER: ${test_file} — RED-zone test '${passing_test}' passed (line ${_pass_line}, RED zone starts line ${red_zone_line}); remove or update the [${red_marker}] marker">&2
519
+
_has_stale_pass=true
520
+
fi
521
+
done
522
+
523
+
if [[ "$_has_stale_pass"==true ]];then
524
+
rm -f "$test_output_file"
525
+
if [[ "$STATUS"!="timeout" ]];then
526
+
STATUS="failed"
527
+
fi
528
+
continue
529
+
fi
530
+
531
+
# No stale passing tests — tolerate RED zone failures as normal
482
532
echo"INFO: RED zone failures tolerated for ${test_file} (marker: ${red_marker}, zone starts line ${red_zone_line})">&2
483
533
rm -f "$test_output_file"
484
534
# Do NOT downgrade STATUS — this test is non-blocking
@@ -496,7 +546,19 @@ for test_file in "${ASSOCIATED_TESTS[@]}"; do
496
546
fi
497
547
fi
498
548
499
-
# No RED marker (or test passed) — standard behavior
549
+
# ── Stale RED marker detection: exit 0 + RED marker ───────────────────
550
+
# If the test file passed (exit 0) but has a RED marker, the marker is
551
+
# stale — all RED-zone tests are now passing. Block and report.
552
+
if [[ $exit_code-eq 0 ]] && [[ -n"$red_marker" ]];then
553
+
echo"STALE RED MARKER: ${test_file} (marker: ${red_marker}) — all RED-zone tests passed; remove the [${red_marker}] marker from .test-index">&2
554
+
rm -f "$test_output_file"
555
+
if [[ "$STATUS"!="timeout" ]];then
556
+
STATUS="failed"
557
+
fi
558
+
continue
559
+
fi
560
+
561
+
# No RED marker (or test passed without marker) — standard behavior
500
562
if [[ $exit_code-ne 0 ]];then
501
563
echo"--- Test output for $test_file (exit $exit_code) ---">&2
0 commit comments