Skip to content

Commit b178998

Browse files
committed
Build path from current_dir
1 parent 5c0b998 commit b178998

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/compile-test.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ fn run_mode(dir: &'static str, mode: &'static str) {
2222
}
2323

2424
config.mode = cfg_mode;
25-
config.build_base = PathBuf::from("target/debug/test_build_base")
26-
.canonicalize()
27-
.unwrap();
25+
config.build_base = {
26+
let mut path = std::env::current_dir().unwrap();
27+
path.push("target/debug/test_build_base");
28+
path
29+
};
2830
config.src_base = PathBuf::from(format!("tests/{}", dir));
2931
config.rustc_path = clippy_driver_path();
3032

0 commit comments

Comments
 (0)