Skip to content

Commit 9898734

Browse files
committed
compiletest: disambiguate between root build dir vs test suite specific build dir
- Introduce and use `--build-{root,test-suite-root}` over `--build-base`. - A few minor cleanups.
1 parent 7d2e4e4 commit 9898734

File tree

1 file changed

+4
-0
lines changed
  • src/tools/compiletest/src

1 file changed

+4
-0
lines changed

src/tools/compiletest/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ pub fn parse_config(args: Vec<String>) -> Config {
314314
let build_test_suite_root = opt_path(matches, "build-test-suite-root");
315315
assert!(build_test_suite_root.starts_with(&build_root));
316316

317+
let build_root = opt_path(matches, "build-root");
318+
let build_test_suite_root = opt_path(matches, "build-test-suite-root");
319+
assert!(build_test_suite_root.starts_with(&build_root));
320+
317321
Config {
318322
bless: matches.opt_present("bless"),
319323
compile_lib_path: make_absolute(opt_path(matches, "compile-lib-path")),

0 commit comments

Comments
 (0)