Give travis a guaranteed existing directory for ui test output

This commit is contained in:
Oliver Schneider 2018-02-01 14:35:56 +01:00
parent 6f99052580
commit d5bac82837
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9

View file

@ -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");