File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ fn get_time_options(
339
339
340
340
fn get_shuffle ( matches : & getopts:: Matches , allow_unstable : bool ) -> OptPartRes < bool > {
341
341
let mut shuffle = unstable_optflag ! ( matches, allow_unstable, "shuffle" ) ;
342
- if !shuffle {
342
+ if !shuffle && allow_unstable {
343
343
shuffle = match env:: var ( "RUST_TEST_SHUFFLE" ) {
344
344
Ok ( val) => & val != "0" ,
345
345
Err ( _) => false ,
@@ -364,7 +364,7 @@ fn get_shuffle_seed(matches: &getopts::Matches, allow_unstable: bool) -> OptPart
364
364
None => None ,
365
365
} ;
366
366
367
- if shuffle_seed. is_none ( ) {
367
+ if shuffle_seed. is_none ( ) && allow_unstable {
368
368
shuffle_seed = match env:: var ( "RUST_TEST_SHUFFLE_SEED" ) {
369
369
Ok ( val) => match val. parse :: < u64 > ( ) {
370
370
Ok ( n) => Some ( n) ,
You can’t perform that action at this time.
0 commit comments