Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
tests: Print the number of skipped tests. [skip ci]
Browse files Browse the repository at this point in the history
(cherry picked from commit 6c49eec)
  • Loading branch information
infrastation authored and fxlb committed Aug 3, 2024
1 parent 37b7513 commit 7ffcbcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TESTrun
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ unshift(@INC, $testsdir);

$passedcount = 0;
$failedcount = 0;
$skippedcount = 0;
#
my $failureoutput=$origdir . "/tests/failure-outputs.txt";

Expand Down Expand Up @@ -420,11 +421,13 @@ sub runOneComplexTest {

if(!$foundit) {
printf " %-40s: skipped (%s not set)\n", $name, $configset;
$skippedcount++;
return 0;
}

if(!$unfoundit) {
printf " %-40s: skipped (%s set)\n", $name, $configunset;
$skippedcount++;
return 0;
}

Expand Down Expand Up @@ -509,6 +512,7 @@ if(scalar(@ARGV) == 0) {

# exit with number of failing tests.
print "------------------------------------------------\n";
printf("%4u tests skipped\n",$skippedcount);
printf("%4u tests failed\n",$failedcount);
printf("%4u tests passed\n",$passedcount);

Expand Down

0 comments on commit 7ffcbcd

Please sign in to comment.