File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -520,22 +520,30 @@ def main() -> None:
520520 # Success or failure?
521521 # It's an error to find no tests.
522522 print (' ---' )
523- num_tests_passed : int = num_tests - total_fail_count - total_ignore_count
523+ total_pass_count : int = num_tests - total_fail_count - total_ignore_count
524524 dry_run : str = '[DRY RUN]' if args .dry_run else ''
525525 if total_fail_count :
526526 arg_parser .error ('Done (FAILURE)'
527- f' passed={ num_tests_passed } '
527+ f' passed={ total_pass_count } '
528528 f' ignored={ total_ignore_count } '
529529 f' failed={ total_fail_count } '
530530 f' { dry_run } ' )
531- elif num_tests_passed == 0 :
531+ elif total_pass_count == 0 :
532532 arg_parser .error ('Done (FAILURE)'
533- f' passed={ num_tests_passed } '
533+ f' passed={ total_pass_count } '
534534 f' ignored={ total_ignore_count } '
535535 f' failed=0'
536536 f' (at least one test must pass) { dry_run } ' )
537537 else :
538- print (f'Done (OK) passed={ num_tests_passed } { dry_run } ' )
538+ print (f'Done (OK)'
539+ f' passed={ total_pass_count } '
540+ f' ignored={ total_ignore_count } { dry_run } ' )
541+
542+ # Automatically wipe.
543+ # If there have been no failures
544+ # and not told to keep directories.
545+ if total_fail_count == 0 and not args .keep_results :
546+ _wipe ()
539547
540548
541549# -----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments