Build path from current_dir

This commit is contained in:
Shotaro Yamada 2017-11-09 14:47:14 +09:00
parent 5c0b99820b
commit b17899878f

View file

@ -22,9 +22,11 @@ fn run_mode(dir: &'static str, mode: &'static str) {
}
config.mode = cfg_mode;
config.build_base = PathBuf::from("target/debug/test_build_base")
.canonicalize()
.unwrap();
config.build_base = {
let mut path = std::env::current_dir().unwrap();
path.push("target/debug/test_build_base");
path
};
config.src_base = PathBuf::from(format!("tests/{}", dir));
config.rustc_path = clippy_driver_path();