qa/zcash/full_test_suite.py: print immediately if a test fails.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-10-16 03:58:31 +01:00
parent f85ed2741c
commit c06cc5854e
1 changed files with 6 additions and 3 deletions

View File

@ -226,11 +226,14 @@ def main():
sys.exit(1)
# Run the stages
passed = True
all_passed = True
for s in args.stage:
passed &= run_stage(s)
passed = run_stage(s)
if not passed:
print("!!! Stage %s failed !!!" % (s,))
all_passed &= passed
if not passed:
if not all_passed:
print("!!! One or more test stages failed !!!")
sys.exit(1)