Skip to content

Commit c008cd7

Browse files
Make compiletest write test output to different files for different revisions.
1 parent 8c6e2ff commit c008cd7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tools/compiletest/src/runtest.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,14 @@ actual:\n\
15891589
}
15901590

15911591
fn dump_output(&self, out: &str, err: &str) {
1592-
self.dump_output_file(out, "out");
1593-
self.dump_output_file(err, "err");
1592+
let revision = if let Some(r) = self.revision {
1593+
format!("{}.", r)
1594+
} else {
1595+
String::new()
1596+
};
1597+
1598+
self.dump_output_file(out, &format!("{}out", revision));
1599+
self.dump_output_file(err, &format!("{}err", revision));
15941600
self.maybe_dump_to_stdout(out, err);
15951601
}
15961602

0 commit comments

Comments
 (0)