Bug 1230596 - Allow running talos on specific platforms through mach try. r=jgraham

--HG--
extra : commitid : AeckQOMrkDy
This commit is contained in:
Chris Manchester 2015-12-07 15:13:03 -08:00
parent 16cd9db041
commit 3d18fb1c81
2 changed files with 4 additions and 2 deletions

View File

@ -524,7 +524,8 @@ class PushToTry(MachCommandBase):
sys.exit(1)
try:
talos = self.normalise_list(kwargs["talos"]) if kwargs["talos"] else []
talos = (self.normalise_list(kwargs["talos"], allow_subitems=True)
if kwargs["talos"] else [])
except ValueError as e:
print("Error parsing -t argument:\n%s" % e.message)
sys.exit(1)

View File

@ -320,7 +320,8 @@ class AutoTry(object):
for k,v in sorted(suites.items())) if suites else "none")
parts.append("-t")
parts.append(",".join(talos) if talos else "none")
parts.append(",".join("%s%s" % (k, "[%s]" % ",".join(v) if v else "")
for k,v in sorted(talos.items())) if talos else "none")
if tags:
parts.append(' '.join('--tag %s' % t for t in tags))