Small fix to 'make test' script

When the tests fail they don't display the number of skipped and run test
This commit is contained in:
Manuel Pégourié-Gonnard 2015-10-20 16:59:20 +02:00
parent a6925c502d
commit c4cbc94d44

View File

@ -21,12 +21,12 @@ for my $suite (@suites)
my $result = `$prefix$suite`;
if( $result =~ /PASSED/ ) {
print "PASS\n";
my ($tests, $skipped) = $result =~ /([0-9]*) tests.*?([0-9]*) skipped/;
$total_tests_run += $tests - $skipped;
} else {
$failed_suites++;
print "FAIL\n";
}
my ($tests, $skipped) = $result =~ /([0-9]*) tests.*?([0-9]*) skipped/;
$total_tests_run += $tests - $skipped;
}
print "-" x 72, "\n";