Skip to content

Commit e409abb

Browse files
committed
Create per-revision mir_dump_dir
1 parent b8005bf commit e409abb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/compiletest/src/runtest.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,12 @@ impl<'test> TestCx<'test> {
13991399
let mut mir_dump_dir = self.config.build_test_suite_root.clone();
14001400
debug!("input_file: {}", self.testpaths.file);
14011401
mir_dump_dir.push(&self.testpaths.relative_dir);
1402-
mir_dump_dir.push(self.testpaths.file.file_stem().unwrap());
1402+
let name = self.testpaths.file.file_stem().unwrap();
1403+
if let Some(revision) = self.revision {
1404+
mir_dump_dir.push(format!("{name}#{revision}"));
1405+
} else {
1406+
mir_dump_dir.push(name);
1407+
}
14031408
mir_dump_dir
14041409
}
14051410

0 commit comments

Comments
 (0)