diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2017-04-06 16:56:09 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.net> | 2017-04-12 11:42:15 +0200 |
| commit | c008cd70f5cb20cf22eb2cc9ae12f978296e8a45 (patch) | |
| tree | 1cb56ed830649609fcff2e06ae6323ebf6719350 /src | |
| parent | 8c6e2ff45248dde631ff93f6fc21049dbafd5cba (diff) | |
| download | rust-c008cd70f5cb20cf22eb2cc9ae12f978296e8a45.tar.gz rust-c008cd70f5cb20cf22eb2cc9ae12f978296e8a45.zip | |
Make compiletest write test output to different files for different revisions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 2865fa6a792..7fb296c19f6 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1589,8 +1589,14 @@ actual:\n\ } 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); } |
