Fix running multiple targets.

The aux dir, which previously had the `stage_id` embedded in it, was picking up remnants from previous runs.
This commit is contained in:
Eric Huss 2018-05-12 22:18:55 -07:00
parent 6f414b1408
commit b8473de7b9

View File

@ -1476,12 +1476,13 @@ impl<'test> TestCx<'test> {
}
fn compose_and_run_compiler(&self, mut rustc: Command, input: Option<String>) -> ProcRes {
if !self.props.aux_builds.is_empty() {
create_dir_all(&self.aux_output_dir_name()).unwrap();
}
let aux_dir = self.aux_output_dir_name();
if !self.props.aux_builds.is_empty() {
let _ = fs::remove_dir_all(&aux_dir);
create_dir_all(&aux_dir).unwrap();
}
for rel_ab in &self.props.aux_builds {
let aux_testpaths = self.compute_aux_test_paths(rel_ab);
let aux_props =