1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 14:35:03 -05:00

runtests: return error if no tests ran

... and make TESTFAIL stand out a little better by adding newlines
before and after.

Reported-by: Marc Hörsken
Issue: #6052
Closes #6053
This commit is contained in:
Daniel Stenberg 2020-10-08 00:13:07 +02:00
parent 621e147ca7
commit 88bf689f94
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -5775,11 +5775,11 @@ if($total) {
$ok/$total*100);
if($ok != $total) {
logmsg "TESTFAIL: These test cases failed: $failed\n";
logmsg "\nTESTFAIL: These test cases failed: $failed\n\n";
}
}
else {
logmsg "TESTFAIL: No tests were performed\n";
logmsg "\nTESTFAIL: No tests were performed\n\n";
}
if($all) {
@ -5816,6 +5816,6 @@ if($skipped && !$short) {
}
}
if($total && (($ok+$ign) != $total)) {
if(($total && (($ok+$ign) != $total)) || !$total) {
exit 1;
}