[PATCH] testbot/web: Hightlight the winediag and X errors.

Francois Gouget fgouget at codeweavers.com
Wed Jul 11 04:31:11 CDT 2018


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/LogUtils.pm | 8 +++++++-
 testbot/web/WineTestBot.css         | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 0ef9609e7..5e6407b49 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -431,7 +431,13 @@ sub GetLogLineCategory($)
   {
     return "error";
   }
-  if ($Line =~ /^BotError:/)
+  if ($Line =~ /:winediag:/)
+  {
+    return "diag";
+  }
+  if ($Line =~ /^BotError:/ or
+      $Line =~ /^X Error of failed request: / or
+      $Line =~ / opcode of failed request: /)
   {
     return "boterror";
   }
diff --git a/testbot/web/WineTestBot.css b/testbot/web/WineTestBot.css
index ae2038290..9656254e0 100644
--- a/testbot/web/WineTestBot.css
+++ b/testbot/web/WineTestBot.css
@@ -378,6 +378,7 @@ pre
 .log-todo  { color: #d08000; }
 .log-error { color: red; }
 .log-boterror { color: #cc0052; }
+.log-diag { color: #e56300; }
 
 a.title { color:inherit; text-decoration: none; }
 
-- 
2.18.0




More information about the wine-devel mailing list