From c8cd2c6577e0b8b7641d279c76607b5c166e9a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 20 Oct 2015 16:59:20 +0200 Subject: [PATCH] Small fix to 'make test' script When the tests fail they don't display the number of skipped and run test --- tests/scripts/run-test-suites.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/run-test-suites.pl b/tests/scripts/run-test-suites.pl index ab9db8255..b91355d30 100644 --- a/tests/scripts/run-test-suites.pl +++ b/tests/scripts/run-test-suites.pl @@ -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";