diff --git a/britney.py b/britney.py index e62dd90..5688d10 100755 --- a/britney.py +++ b/britney.py @@ -1965,8 +1965,11 @@ class Britney(object): for arch, (status, log_url) in arch_status.items(): history_url = cloud_url % {'h': srchash(adtsrc), 's': adtsrc, 'r': self.options.series, 'a': arch} + artifact_url = None + if self.options.adt_ppas: + artifact_url = log_url.replace('log.gz', 'artifact.tar.gz') e.addtest('autopkgtest', '%s %s' % (adtsrc, adtver), - arch, status, log_url, history_url) + arch, status, log_url, history_url, artifact_url) # hints can override failures if not passed: diff --git a/excuse.py b/excuse.py index ab89b0c..0238798 100644 --- a/excuse.py +++ b/excuse.py @@ -182,9 +182,15 @@ class Excuse(object): for pkg in sorted(self.tests[testtype]): archmsg = [] for arch in sorted(self.tests[testtype][pkg]): - status, log_url, history_url = self.tests[testtype][pkg][arch] - archmsg.append('%s: %s' % - (history_url or log_url, arch, log_url, EXCUSES_LABELS[status])) + status, log_url, history_url, artifact_url = self.tests[testtype][pkg][arch] + label = EXCUSES_LABELS[status] + if artifact_url: + message = '{arch}: {label} [artifacts]' + elif history_url: + message = '{arch}: {label}' + else: + message = '{arch}: {label}' + archmsg.append(message.format(**locals())) res = res + ("