Skip to content

Commit d1c879f

Browse files
Rollup merge of #107027 - GuillaumeGomez:rm-extra-removal, r=tmiasko
Remove extra removal from test path I don't know how to describe it shortly so better show what it's doing instead. Currently, there is one extra "rust/" before the test folder when running tests: ``` failures: ---- [rustdoc] rust/tests/rustdoc/redirect.rs stdout ---- ``` This is a bit annoying when copying the test path. This is due to the moving of the `tests` folder one level up, meaning we were trimming too much of the `root_path`. Now it is again displaying the correct path: ``` failures: ---- [rustdoc] tests/rustdoc/redirect.rs stdout ---- ```
2 parents 246daa4 + f46f923 commit d1c879f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ fn make_test_name(
775775
) -> test::TestName {
776776
// Print the name of the file, relative to the repository root.
777777
// `src_base` looks like `/path/to/rust/tests/ui`
778-
let root_directory = config.src_base.parent().unwrap().parent().unwrap().parent().unwrap();
778+
let root_directory = config.src_base.parent().unwrap().parent().unwrap();
779779
let path = testpaths.file.strip_prefix(root_directory).unwrap();
780780
let debugger = match config.debugger {
781781
Some(d) => format!("-{}", d),

0 commit comments

Comments
 (0)