We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allow_unstable
1 parent a6738c7 commit 32b6ac5Copy full SHA for 32b6ac5
library/test/src/cli.rs
@@ -339,7 +339,7 @@ fn get_time_options(
339
340
fn get_shuffle(matches: &getopts::Matches, allow_unstable: bool) -> OptPartRes<bool> {
341
let mut shuffle = unstable_optflag!(matches, allow_unstable, "shuffle");
342
- if !shuffle {
+ if !shuffle && allow_unstable {
343
shuffle = match env::var("RUST_TEST_SHUFFLE") {
344
Ok(val) => &val != "0",
345
Err(_) => false,
@@ -364,7 +364,7 @@ fn get_shuffle_seed(matches: &getopts::Matches, allow_unstable: bool) -> OptPart
364
None => None,
365
};
366
367
- if shuffle_seed.is_none() {
+ if shuffle_seed.is_none() && allow_unstable {
368
shuffle_seed = match env::var("RUST_TEST_SHUFFLE_SEED") {
369
Ok(val) => match val.parse::<u64>() {
370
Ok(n) => Some(n),
0 commit comments