[tools]winetest: fix child-result coloring and counting

André Hentschel nerv at dawncrow.de
Mon Jan 4 13:50:29 CST 2010


You can see wrong coloring e.g. here http://test.winehq.org/data/f74e312bf81032c46bd2ce080a5f6a33c7ac3ee3/wine_ah-910-64-nv/rpcrt4:server.html
Also the counting is wrong, that unit test is shown in the summary with 2 errors, but only has 1
This patch fixes the issue. The totalize of those variables is already made in the "offline" software
---
 winetest/dissect |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index 16cc118..ce90bda 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -252,9 +252,9 @@ while (<IN>) {
     } elsif (/^(.*$unit.*: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/) {
         $lines++;
         $total += $2;
-        $todo += $3;
-        $failed += $4;
-        $skipped += $5;
+        $todo = $3;
+        $failed = $4;
+        $skipped = $5;
         chomp;
         s/\r+$//;
         my $class = "test result";
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list