mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1109365: Default try graph platforms to all.
When the platfoms list is not supplied by cli, default to all platforms.
This commit is contained in:
parent
2670c2b1b2
commit
791f4606ac
@ -175,14 +175,10 @@ def parse_commit(message, jobs):
|
||||
# Argument parser based on try flag flags
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-b', dest='build_types')
|
||||
parser.add_argument('-p', dest='platforms')
|
||||
parser.add_argument('-u', dest='tests')
|
||||
parser.add_argument('-p', nargs='?', dest='platforms', const='all', default='all')
|
||||
parser.add_argument('-u', nargs='?', dest='tests', const='all', default='all')
|
||||
args, unknown = parser.parse_known_args(parts[1:])
|
||||
|
||||
# Sanity check platforms...
|
||||
if args.platforms is None:
|
||||
return []
|
||||
|
||||
# Then builds...
|
||||
if args.build_types is None:
|
||||
return []
|
||||
|
Loading…
Reference in New Issue
Block a user