Francois Gouget : testbot: Detect the TestBot scripts usage errors in LogUtils.

Alexandre Julliard julliard at winehq.org
Wed Aug 29 15:37:53 CDT 2018


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Sun Aug 26 10:18:00 2018 +0200

testbot: Detect the TestBot scripts usage errors in LogUtils.

They indicate a TestBot error obviously.

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

---

 testbot/lib/WineTestBot/LogUtils.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index a9ab20b..17b9093 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -119,7 +119,11 @@ sub GetLogLineCategory($)
   {
     return "diag";
   }
-  if ($Line =~ /^BotError:/ or
+  if (# TestBot script error messages
+      $Line =~ /^[a-zA-Z.]+:error: / or
+      # TestBot error
+      $Line =~ /^BotError:/ or
+      # X errors
       $Line =~ /^X Error of failed request: / or
       $Line =~ / opcode of failed request: /)
   {




More information about the wine-cvs mailing list