summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-11 23:02:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-12 17:00:50 +0200
commit8a534f8838bcc33a8614393deb59d03bfcfa229a (patch)
treebf5424a38579ce447cbd77156e6cbb4f9e76953a /tests
parent1fed8feaf1e1840b7c7bdb3d028c59f498fe79d1 (diff)
downloadcurl-8a534f8838bcc33a8614393deb59d03bfcfa229a.tar.gz
runtests: split out ignored tests
Report ignore tests separately from the actual fails. Don't exit non-zero if test servers couldn't get killed. Assisted-by: Jay Satiro Fixes #7818 Closes #7841
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 9a1c169b6..a8d597ccc 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -6029,6 +6029,7 @@ if(azure_check_environment()) {
#
my $failed;
+my $failedign;
my $testnum;
my $ok=0;
my $ign=0;
@@ -6064,8 +6065,8 @@ foreach $testnum (@at) {
if($error>0) {
if($error==2) {
- # ignored test failures are wrapped in ()
- $failed.= "($testnum) ";
+ # ignored test failures
+ $failedign .= "$testnum ";
}
else {
$failed.= "$testnum ";
@@ -6151,6 +6152,9 @@ if($skipped && !$short) {
}
if($total) {
+ if($failedign) {
+ logmsg "IGNORED: failed tests: $failedign\n";
+ }
logmsg sprintf("TESTDONE: $ok tests out of $total reported OK: %d%%\n",
$ok/$total*100);
@@ -6169,6 +6173,6 @@ else {
}
}
-if(($total && (($ok+$ign) != $total)) || !$total || $unexpected) {
+if(($total && (($ok+$ign) != $total)) || !$total) {
exit 1;
}