]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: abort test run after failure without -a 11227/head
authorDan Fandrich <dan@coneharvesters.com>
Tue, 30 May 2023 20:42:46 +0000 (13:42 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 30 May 2023 20:49:48 +0000 (13:49 -0700)
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

tests/runtests.pl

index 5bfda269ece543c92b4341eb04087c4d22858eef..87135b92fd228cec00dd8242a6e34b16105b57bb 100755 (executable)
@@ -2653,7 +2653,7 @@ foreach my $testnum (@runtests) {
             elsif(!$anyway) {
                 # a test failed, abort
                 logmsg "\n - abort tests\n";
-                last;
+                last nexttest;
             }
         }
         elsif(!$error) {