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
This commit is contained in:
Dan Fandrich 2023-05-30 13:42:46 -07:00
parent 7ab9d43720
commit 8ac18ee2bb

View file

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