[Tools 06/12] winetest: Copy the winetest start, result summary and done lines to the per-test logs.
Francois Gouget
fgouget at free.fr
Fri Mar 14 11:24:41 CDT 2008
---
The winetest 'start' and 'done' lines determine how dissect/gather
classify some test failures. So having them in that test's log is
useful.
winetest/dissect | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/winetest/dissect b/winetest/dissect
index b5ea968..0d017fc 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -163,14 +163,15 @@ while (<IN>) {
or mydie "no start line:$.: $_";
($unit,$test,$source,$rev) = ($1,$2,$3,$4);
open OUT, ">:raw", $tmpfile or mydie "can't open $tmpfile: $!\n";
- } elsif (s/^(.*$test.*: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/$1/) {
+ print OUT;
+ } elsif (/^(.*$test.*: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/) {
$lines++;
$total += $2;
$todo += $3;
$failed += $4;
$skipped += $5;
print OUT;
- } elsif (s/$unit:$test done \((-?\d+)\)\r?$//) {
+ } elsif (/$unit:$test done \((-?\d+)\)\r?$/) {
chomp; # current test ended
if ($lines==0) {
$result = "failed $1 - -";
--
1.5.4.1
More information about the wine-patches
mailing list