From dcf18f988e7737a5bbb77618da99cc5dc7035539 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 23 Nov 2023 11:51:14 -0500 Subject: tests: Fix --stop --- tests/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/run.sh b/tests/run.sh index c7e819a..785c414 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -80,12 +80,15 @@ wait_test() { case $ret in 0) ((++passed)) + return 0 ;; $EX_SKIP) ((++skipped)) + return 0 ;; *) ((++failed)) + return $ret ;; esac } @@ -126,6 +129,9 @@ run_tests() { for TEST in "${TEST_CASES[@]}"; do if ((BG >= JOBS)); then wait_test + if (($? && STOP)); then + break + fi fi printf "$TEST_FMT" "$TEST" -- cgit v1.2.3