Shuffle tests in run_order
To make sure that it isn't just running them in justfile order.
This commit is contained in:
parent
534d702566
commit
5125a1ddac
10
src/tests.rs
10
src/tests.rs
@ -352,17 +352,17 @@ fn run_order() {
|
||||
let tmp = tempdir::TempDir::new("run_order").unwrap_or_else(|err| panic!("tmpdir: failed to create temporary directory: {}", err));
|
||||
let path = tmp.path().to_str().unwrap_or_else(|| panic!("tmpdir: path was not valid UTF-8")).to_owned();
|
||||
let text = r"
|
||||
a:
|
||||
@touch a
|
||||
|
||||
b: a
|
||||
@mv a b
|
||||
|
||||
c: b
|
||||
@mv b c
|
||||
a:
|
||||
@touch a
|
||||
|
||||
d: c
|
||||
@rm c
|
||||
|
||||
c: b
|
||||
@mv b c
|
||||
";
|
||||
super::std::env::set_current_dir(path).expect("failed to set current directory");
|
||||
parse_success(text).run(&["a", "d"]).unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user