Bug 1382827 - |mach try --artifact| should remove |--artifact| if "-nightly" platforms are requested. r=chmanchester

MozReview-Commit-ID: Dqle5sBlZNr

--HG--
extra : rebase_source : d165af63dc433188fc00e778082572d5f1d35858
This commit is contained in:
Ed Lee 2017-07-20 13:37:31 -07:00
Родитель 1a00a870d7
Коммит 37b62d73cb
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -411,6 +411,11 @@ class AutoTry(object):
if intersection and not suites: if intersection and not suites:
raise ValueError("No tests found matching filters") 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'): if extras.get('artifact'):
rejected = [] rejected = []
for suite in suites.keys(): for suite in suites.keys():