[PATCH] testbot: Trace the chunks in _DumpDiff().
Francois Gouget
fgouget at codeweavers.com
Fri Nov 8 03:53:01 CST 2019
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/LogUtils.pm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 019e3c6cd..ea1ad89cc 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -821,17 +821,19 @@ sub _DumpDiff($$)
print STDERR "$Label:\n";
$Diff = $Diff->Copy();
+ my $Chunk = 0;
while ($Diff->Next())
{
if ($Diff->Same())
{
- print STDERR " $_\n" for ($Diff->Same());
+ print STDERR "$Chunk $_\n" for ($Diff->Same());
}
else
{
- print STDERR "-$_\n" for ($Diff->Items(1));
- print STDERR "+$_\n" for ($Diff->Items(2));
+ print STDERR "$Chunk -$_\n" for ($Diff->Items(1));
+ print STDERR "$Chunk +$_\n" for ($Diff->Items(2));
}
+ $Chunk++;
}
}
--
2.20.1
More information about the wine-devel
mailing list