Skip to content

Commit

Permalink
build(tests/fmt): use shared target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Dec 1, 2019
1 parent 142b289 commit 7156aa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ fn fmt() {

let root_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let dev_dir = root_dir.join("clippy_dev");
let target_dir = root_dir.join("target");
let target_dir = target_dir.to_str().unwrap();
let output = Command::new("cargo")
.current_dir(dev_dir)
.args(&["+nightly", "run", "--", "fmt", "--check"])
.args(&["+nightly", "run", "--target-dir", target_dir, "--", "fmt", "--check"])
.output()
.unwrap();

Expand Down

0 comments on commit 7156aa7

Please sign in to comment.