From 5442ff6abaec9fa28c73b8b1c4fbf9fbecf686b0 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 15:34:10 +0000 Subject: tests: Fixed coverage reports git-svn-id: http://pugixml.googlecode.com/svn/trunk@675 99668b35-9821-0410-8761-19e4c4f06640 --- tests/autotest-report.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/autotest-report.pl') diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl index 993674a..58f0d84 100644 --- a/tests/autotest-report.pl +++ b/tests/autotest-report.pl @@ -88,9 +88,9 @@ while (<>) { $results{$fulltool}{$fullconf}{result} = 0; } - elsif ($info =~ /^coverage (\S+) (\S+)/) + elsif ($info =~ /^coverage (\S+)/) { - $results{$fulltool}{$fullconf}{"coverage_$1"} = $2; + $results{$fulltool}{$fullconf}{coverage} = $1; } else { @@ -169,13 +169,13 @@ foreach $tool (@toolsetarray) } elsif ($$info{result} == 0) { - my ($coverage_pugixml, $coverage_pugixpath) = ($$info{coverage_pugixml}, $$info{coverage_pugixpath}); + my $coverage = $$info{coverage}; print "pass"; - if ($coverage_pugixml > 0 || $coverage_pugixpath > 0) + if ($coverage > 0) { - print "
" . ($coverage_pugixml + 0) . "%
" . ($coverage_pugixpath + 0) . "%
"; + print "
" . ($coverage + 0) . "%"; } print ""; -- cgit v1.2.3