@@ -366,29 +366,29 @@ def run_tests(options, suites):
366
366
367
367
def parse_args (args ):
368
368
parser = argparse .ArgumentParser (prog = 'runner.py' , description = __doc__ )
369
- parser .add_argument ('--save-dir' , action = 'store_true' , default = None ,
369
+ parser .add_argument ('--save-dir' , action = 'store_true' ,
370
370
help = 'Save the temporary directory used during for each '
371
371
'test. Implies --cores=1. Defaults to true when running a single test' )
372
372
parser .add_argument ('--no-clean' , action = 'store_true' ,
373
373
help = 'Do not clean the temporary directory before each test run' )
374
- parser .add_argument ('--verbose' , '-v' , action = 'store_true' , default = None )
375
- parser .add_argument ('--all-engines' , action = 'store_true' , default = None )
376
- parser .add_argument ('--detect-leaks' , action = 'store_true' , default = None )
374
+ parser .add_argument ('--verbose' , '-v' , action = 'store_true' )
375
+ parser .add_argument ('--all-engines' , action = 'store_true' )
376
+ parser .add_argument ('--detect-leaks' , action = 'store_true' )
377
377
parser .add_argument ('--skip-slow' , action = 'store_true' , help = 'Skip tests marked as slow' )
378
378
parser .add_argument ('--cores' , '-j' ,
379
379
help = 'Set the number tests to run in parallel. Defaults '
380
380
'to the number of CPU cores.' , default = None )
381
- parser .add_argument ('--rebaseline' , action = 'store_true' , default = None ,
381
+ parser .add_argument ('--rebaseline' , action = 'store_true' ,
382
382
help = 'Automatically update test expectations for tests that support it.' )
383
383
parser .add_argument ('--browser' ,
384
384
help = 'Command to launch web browser in which to run browser tests.' )
385
385
parser .add_argument ('tests' , nargs = '*' )
386
- parser .add_argument ('--failfast' , action = 'store_const' , const = True , default = False )
386
+ parser .add_argument ('--failfast' , action = 'store_true' )
387
387
parser .add_argument ('--start-at' , metavar = 'NAME' , help = 'Skip all tests up until <NAME>' )
388
388
parser .add_argument ('--continue' , dest = '_continue' , action = 'store_true' ,
389
389
help = 'Resume from the last run test.'
390
390
'Useful when combined with --failfast' )
391
- parser .add_argument ('--force64' , action = 'store_const' , const = True , default = None )
391
+ parser .add_argument ('--force64' , action = 'store_true' )
392
392
parser .add_argument ('--crossplatform-only' , action = 'store_true' )
393
393
parser .add_argument ('--repeat' , type = int , default = 1 ,
394
394
help = 'Repeat each test N times (default: 1).' )
0 commit comments