Add --list-stages argument to full_test_suite.py

This commit is contained in:
Jack Grigg 2017-10-18 00:56:32 -07:00
parent 91dd425b4a
commit 692bf7a6df
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with 7 additions and 0 deletions

View File

@ -171,10 +171,17 @@ def run_stage(stage):
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--list-stages', dest='list', action='store_true')
parser.add_argument('stage', nargs='*', default=STAGES,
help='One of %s'%STAGES)
args = parser.parse_args()
# Check for list
if args.list:
for s in STAGES:
print(s)
sys.exit(0)
# Check validity of stages
for s in args.stage:
if s not in STAGES: