Skip to content

Commit d5bac82

Browse files
committed
Give travis a guaranteed existing directory for ui test output
1 parent 6f99052 commit d5bac82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/compile-test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ fn config(dir: &'static str, mode: &'static str) -> compiletest::Config {
4747

4848
config.mode = cfg_mode;
4949
config.build_base = if rustc_test_suite().is_some() {
50-
PathBuf::from("/tmp/clippy_test_build_base")
50+
// we don't need access to the stderr files on travis
51+
let mut path = PathBuf::from(env!("OUT_DIR"));
52+
path.push("test_build_base");
53+
path
5154
} else {
5255
let mut path = std::env::current_dir().unwrap();
5356
path.push("target/debug/test_build_base");

0 commit comments

Comments
 (0)