From: Dan Fandrich Date: Tue, 30 May 2023 20:42:46 +0000 (-0700) Subject: runtests: abort test run after failure without -a X-Git-Tag: curl-8_2_0~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11227%2Fhead;p=thirdparty%2Fcurl.git runtests: abort test run after failure without -a This was broken in a recent refactor and test runs would not stop. Follow-up to d4a1b5b6 Reported-by: Daniel Stenberg Fixes #11225 Closes #11227 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 5bfda269ec..87135b92fd 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2653,7 +2653,7 @@ foreach my $testnum (@runtests) { elsif(!$anyway) { # a test failed, abort logmsg "\n - abort tests\n"; - last; + last nexttest; } } elsif(!$error) {