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:
parent
621e147ca7
commit
88bf689f94
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user