From 37b62d73cbd983900583b59796b1efa426a5176d Mon Sep 17 00:00:00 2001 From: Ed Lee Date: Thu, 20 Jul 2017 13:37:31 -0700 Subject: [PATCH] Bug 1382827 - |mach try --artifact| should remove |--artifact| if "-nightly" platforms are requested. r=chmanchester MozReview-Commit-ID: Dqle5sBlZNr --HG-- extra : rebase_source : d165af63dc433188fc00e778082572d5f1d35858 --- testing/tools/autotry/autotry.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/tools/autotry/autotry.py b/testing/tools/autotry/autotry.py index 911575c10aae..09d644727453 100644 --- a/testing/tools/autotry/autotry.py +++ b/testing/tools/autotry/autotry.py @@ -411,6 +411,11 @@ class AutoTry(object): if intersection and not suites: raise ValueError("No tests found matching filters") + if extras.get('artifact') and any([p.endswith("-nightly") for p in platforms]): + print('You asked for |--artifact| but "-nightly" platforms don\'t have artifacts. ' + 'Running without |--artifact| instead.') + del extras['artifact']; + if extras.get('artifact'): rejected = [] for suite in suites.keys():