From: Francois Gouget Subject: [Tools] winetest: Add support for reports containing pids. Message-Id: Date: Thu, 16 Feb 2017 12:35:44 +0100 (CET) This patch just lets dissect recognize the test result lines despite the extra pid field but does not yet put it to use. It also makes the 'tests executed' regexp a bit stricter. Signed-off-by: Francois Gouget --- winetest/dissect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winetest/dissect b/winetest/dissect index d9404fe2..a4f3f994 100755 --- a/winetest/dissect +++ b/winetest/dissect @@ -306,7 +306,7 @@ while () { $dll = undef; mydie "too many tests skipped by user request\n" if ++$user_skips > $maxuserskips; } - } elsif (/^(.*$unit.*: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/) { + } elsif (/^((?:[0-9a-f]+:)?$unit: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/) { $lines++; $total += $2; $todo += $3; @@ -318,7 +318,7 @@ while () { if ($failed) { $class .= " failed"; } elsif ($todo) { $class .= " todo"; } $testbox->{data} .= sprintf "
%s
\n", $class, escapeHTML($_); - } elsif (/$dll:$unit done \((-?\d+)\)(?:\r?$| in)/) { + } elsif (/$dll:$unit(?::[0-9a-f]+)? done \((-?\d+)\)(?:\r?$| in)/) { chomp; # current test ended if ($lines==0 || $1 < 0) { $result = "failed $1 - -"; -- 2.11.0