Francois Gouget : testbot/LogUtils: Ignore empty report lines.

Alexandre Julliard julliard at winehq.org
Wed Jan 27 15:09:51 CST 2021


Module: tools
Branch: master
Commit: 153a206d85287602ec1900aee3e620a89adbde6f
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=153a206d85287602ec1900aee3e620a89adbde6f

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Jan 27 04:03:36 2021 +0100

testbot/LogUtils: Ignore empty report lines.

They have no impact on the ParseWineTestReport() result.
Also this matches the winetest parser behavior.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/LogUtils.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 7786494..d537af2 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -531,6 +531,7 @@ sub ParseWineTestReport($$$)
   {
     $LineNo++;
     $Cur->{UnitSize} += length($Line);
+    next if ($Line =~ /^\s*$/); # empty lines have no impact
     chomp $Line;
     $Line =~ s/\r+$//;
 




More information about the wine-cvs mailing list