Skip to content

Commit

Permalink
Add --list-stages argument to full_test_suite.py
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Oct 18, 2017
1 parent 91dd425 commit 692bf7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa/zcash/full_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 692bf7a

Please sign in to comment.