diff --git a/tests/runtests.pl b/tests/runtests.pl index dccb8463b7..64f6f941a7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -144,6 +144,8 @@ my %disabled; # disabled test cases my %ignored; # ignored results of test cases my %ignoretestcodes; # if test results are to be ignored +my $passedign; # tests passed with results ignored + my $timestats; # time stamping and stats generation my $fullstats; # show time stats for every single test my %timeprepini; # timestamp for each test preparation start @@ -1776,6 +1778,8 @@ sub singletest_success { } if($errorreturncode==2) { + # ignored test success + $passedign .= "$testnum "; logmsg "Warning: test$testnum result is ignored, but passed!\n"; } } @@ -3079,10 +3083,18 @@ sub testnumdetails { } if($total) { + if($passedign) { + my $sorted = numsortwords($passedign); + logmsg "::group::Passed Ignored Test details\n"; + testnumdetails("PASSED-IGNORED", $sorted); + logmsg "IGNORED: passed tests: $sorted\n"; + logmsg "::endgroup::\n"; + } + if($failedign) { - my $failedignsorted = numsortwords($failedign); - testnumdetails("FAIL-IGNORED", $failedignsorted); - logmsg "IGNORED: failed tests: $failedignsorted\n"; + my $sorted = numsortwords($failedign); + testnumdetails("FAIL-IGNORED", $sorted); + logmsg "IGNORED: failed tests: $sorted\n"; } logmsg sprintf("TESTDONE: $ok tests out of $total reported OK: %d%%\n", $ok/$total*100);