mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-20 22:51:58 +00:00
Give travis a guaranteed existing directory for ui test output
This commit is contained in:
parent
6f99052580
commit
d5bac82837
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ fn config(dir: &'static str, mode: &'static str) -> compiletest::Config {
|
|||
|
||||
config.mode = cfg_mode;
|
||||
config.build_base = if rustc_test_suite().is_some() {
|
||||
PathBuf::from("/tmp/clippy_test_build_base")
|
||||
// we don't need access to the stderr files on travis
|
||||
let mut path = PathBuf::from(env!("OUT_DIR"));
|
||||
path.push("test_build_base");
|
||||
path
|
||||
} else {
|
||||
let mut path = std::env::current_dir().unwrap();
|
||||
path.push("target/debug/test_build_base");
|
||||
|
|
Loading…
Reference in a new issue