[PATCH 2/2] testbot/web: Prettify the log / error separator.

Francois Gouget fgouget at codeweavers.com
Thu Jun 21 07:23:58 CDT 2018


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/web/JobDetails.pl   |  7 ++++++-
 testbot/web/WineTestBot.css | 14 ++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index 1536e87cd..8cc354e84 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -495,7 +495,12 @@ sub GenerateBody($)
         chomp $Line;
         if ($ErrFirst)
         {
-          print "<hr>\n" if (!$LogFirst);
+          if (!$LogFirst)
+          {
+            print "<div class='HrTitle'>".
+                  ($ErrName eq "err" ? "Other errors" : "Old errors") .
+                  "<div class='HrLine'></div></div>\n";
+          }
           print "<pre><code>";
           $ErrFirst = 0;
         }
diff --git a/testbot/web/WineTestBot.css b/testbot/web/WineTestBot.css
index 28ac1b1c2..593c38f44 100644
--- a/testbot/web/WineTestBot.css
+++ b/testbot/web/WineTestBot.css
@@ -317,6 +317,20 @@ h2
   padding-bottom: 0.1em;
 }
 
+.HrTitle {
+  margin-top: 0.5em;
+  display: flex;
+  align-items: center;
+  color: #a50d0d;
+}
+
+.HrLine {
+  border-top: 1px solid grey;
+  flex-grow: 1;
+  margin: 0 10px;
+  border-color: #a50d0d;
+}
+
 details
 {
   font-style: italic;
-- 
2.17.1



More information about the wine-devel mailing list