Alexandre Julliard : winetest: Do not count test runs with no results as a success for the index page.

Alexandre Julliard julliard at winehq.org
Thu Apr 21 06:50:25 CDT 2011


Module: tools
Branch: master
Commit: 7b4fd493ca841a7a1b18563533d6b481f4da48da
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=7b4fd493ca841a7a1b18563533d6b481f4da48da

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 21 11:57:59 2011 +0200

winetest: Do not count test runs with no results as a success for the index page.

---

 winetest/gather |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/winetest/gather b/winetest/gather
index 8a538d9..ab5e41f 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -291,6 +291,7 @@ foreach my $group (@groups) {
         $report->{errors} = 0;
         $report->{successes} = 0;
         $report->{todos} = 0;
+        $report->{runs} = 0;
         foreach my $testname (sort keys %alltests) {
             my $result = $report->{$testname};
             if ($result->{status} !~ /^(?:dll missing|run|skipped)$/ or
@@ -304,10 +305,14 @@ foreach my $group (@groups) {
             {
                 $report->{todos}++;
             }
+            if ($result->{status} !~ /^(?:dll missing|skipped)$/)
+            {
+                $report->{runs}++;
+            }
         }
     }
     foreach my $report (@{$group->{reports}}) {
-        $group->{successes}++ if !$report->{errors};
+        $group->{successes}++ if !$report->{errors} && $report->{runs};
     }
 }
 




More information about the wine-cvs mailing list