27
27
Additional option details:
28
28
29
29
-r randomizes test execution order. You can use --randseed=int to provide an
30
- int seed value for the randomizer; this is useful for reproducing troublesome
31
- test orders.
30
+ int seed value for the randomizer. The randseed value will be used
31
+ to set seeds for all random usages in tests
32
+ (including randomizing the tests order if -r is set).
33
+ By default we always set random seed, but do not randomize test order.
32
34
33
35
-s On the first invocation of regrtest using -s, the first test file found
34
36
or the first test file given on the command line is run, and the name of
@@ -229,6 +231,9 @@ def _create_parser():
229
231
more_details )
230
232
group .add_argument ('-p' , '--python' , metavar = 'PYTHON' ,
231
233
help = 'Command to run Python test subprocesses with.' )
234
+ group .add_argument ('--randseed' , metavar = 'SEED' ,
235
+ dest = 'random_seed' , type = int ,
236
+ help = 'pass a global random seed' )
232
237
233
238
group = parser .add_argument_group ('Verbosity' )
234
239
group .add_argument ('-v' , '--verbose' , action = 'count' ,
@@ -249,10 +254,6 @@ def _create_parser():
249
254
group = parser .add_argument_group ('Selecting tests' )
250
255
group .add_argument ('-r' , '--randomize' , action = 'store_true' ,
251
256
help = 'randomize test execution order.' + more_details )
252
- group .add_argument ('--randseed' , metavar = 'SEED' ,
253
- dest = 'random_seed' , type = int ,
254
- help = 'pass a random seed to reproduce a previous '
255
- 'random run' )
256
257
group .add_argument ('-f' , '--fromfile' , metavar = 'FILE' ,
257
258
help = 'read names of tests to run from a file.' +
258
259
more_details )
0 commit comments