Skip to content

Commit d238f86

Browse files
committed
Update compiletest target path
Without this change it accidentally used tests/target/compiletest-{deps,results} instead of the workspace target dir @eddyb pointed this out.
1 parent 61281c7 commit d238f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compiletests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn main() {
6060
let opt = Opt::parse();
6161

6262
let tests_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
63-
let workspace_root = tests_dir.parent().unwrap();
63+
let workspace_root = tests_dir.parent().unwrap().parent().unwrap();
6464
let original_target_dir = workspace_root.join("target");
6565
let deps_target_dir = original_target_dir.join("compiletest-deps");
6666
let compiletest_build_dir = original_target_dir.join("compiletest-results");

0 commit comments

Comments
 (0)