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:
Wander Lairson Costa 2015-02-18 08:10:13 -02:00
parent 2670c2b1b2
commit 791f4606ac

View File

@ -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 []