validate:launcher: Fix printing debug logs URIs

This commit is contained in:
Thibault Saunier 2019-04-15 11:50:16 -04:00
parent e182272262
commit 81b1368237

View 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 ""