Make compiletest write test output to different files for different revisions.

This commit is contained in:
Michael Woerister 2017-04-06 16:56:09 +02:00
parent 8c6e2ff452
commit c008cd70f5

View File

@ -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);
}