[tools] testbot/LogUtils: Simplify a couple of regular expressions.

Francois Gouget fgouget at codeweavers.com
Thu Feb 20 20:03:12 CST 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/LogUtils.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 863cca6bf4..2a39b35fee 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -102,7 +102,7 @@ sub GetLogLineCategory($)
       $Line =~ /: error: / or
       $Line =~ /: undefined reference to `/ or
       $Line =~ /^make: [*]{3} No rule to make target / or
-      $Line =~ /^Makefile:[0-9]+: recipe for target .* failed$/ or
+      $Line =~ /^Makefile:\d+: recipe for target .* failed$/ or
       $Line =~ /^Task: / or
       # Typical perl errors
       _IsPerlError($Line) or
@@ -1047,7 +1047,7 @@ sub _GetLineKey($)
   $Line =~ s/^[0-9a-f]+:([_a-z0-9]+: unhandled exception [0-9a-fA-F]{8,16} at )[0-9a-fA-F]{8,16}$/$1/;
 
   # The exact amount of data printed does not change the error
-  $Line =~ s/^([_.a-z0-9-]+:[_a-z0-9]* prints too much data )\([0-9]+ bytes\)$/$1/;
+  $Line =~ s/^([_.a-z0-9-]+:[_a-z0-9]* prints too much data )\(\d+ bytes\)$/$1/;
 
   # Note: The 'done (258)' lines are modified by ParseWineTestReport() and
   #       no longer contain the pid. So they need no further change here.
-- 
2.20.1




More information about the wine-devel mailing list