Remove extra removal from test path

This commit is contained in:
Guillaume Gomez 2023-01-18 12:09:15 +01:00
parent 74c1ad5d35
commit f46f9231a8

View File

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