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 b4d9d360e0
commit c8cd2c6577

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";