Make compiletest write test output to different files for different revisions.
This commit is contained in:
parent
8c6e2ff452
commit
c008cd70f5
@ -1589,8 +1589,14 @@ fn lib_path_cmd_prefix(path: &str) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn dump_output(&self, out: &str, err: &str) {
|
fn dump_output(&self, out: &str, err: &str) {
|
||||||
self.dump_output_file(out, "out");
|
let revision = if let Some(r) = self.revision {
|
||||||
self.dump_output_file(err, "err");
|
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);
|
self.maybe_dump_to_stdout(out, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user