mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Make compiletest write test output to different files for different revisions.
This commit is contained in:
@@ -1589,8 +1589,14 @@ fn lib_path_cmd_prefix(path: &str) -> String {
|
||||
}
|
||||
|
||||
fn dump_output(&self, out: &str, err: &str) {
|
||||
self.dump_output_file(out, "out");
|
||||
self.dump_output_file(err, "err");
|
||||
let revision = if let Some(r) = self.revision {
|
||||
format!("{}.", r)
|
||||
} else {
|
||||
String::new()
|
||||
};
|
||||
|
||||
self.dump_output_file(out, &format!("{}out", revision));
|
||||
self.dump_output_file(err, &format!("{}err", revision));
|
||||
self.maybe_dump_to_stdout(out, err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user