validate:launcher: Fix printing debug logs URIs
authorThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 15:50:16 +0000 (11:50 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 15:50:16 +0000 (11:50 -0400)
validate/launcher/baseclasses.py

index 48b7582..99099fc 100644 (file)
@@ -559,7 +559,15 @@ class Test(Loggable):
 
     def get_logfile_repr(self):
         if not self.options.redirect_logs:
-            return "\n    Log: %s" % (self.html_log if self.html_log else self.logfile)
+            if self.html_log:
+                log = self.html_log
+            else:
+                log = self.logfile
+
+            if CI_ARTIFACTS_URL:
+                log = CI_ARTIFACTS_URL + os.path.relpath(log, self.options.logsdir)
+
+            return "\n    Log: %s" % (log)
 
         return ""