Skip to content

Commit 2426181

Browse files
authored
Merge pull request #767 from rust-lang/clean-all-tests
Clean all test directories
2 parents 1f6e396 + f951fee commit 2426181

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build_system/src/clean.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,13 @@ fn clean_all() -> Result<(), String> {
6969
}
7070

7171
fn clean_ui_tests() -> Result<(), String> {
72-
let path = Path::new(crate::BUILD_DIR).join("rust/build/x86_64-unknown-linux-gnu/test/ui/");
73-
run_command(&[&"find", &path, &"-name", &"stamp", &"-delete"], None)?;
72+
let directories = ["run-make", "run-make-cargo", "ui"];
73+
for directory in directories {
74+
let path = Path::new(crate::BUILD_DIR)
75+
.join("rust/build/x86_64-unknown-linux-gnu/test/")
76+
.join(directory);
77+
run_command(&[&"find", &path, &"-name", &"stamp", &"-delete"], None)?;
78+
}
7479
Ok(())
7580
}
7681

0 commit comments

Comments
 (0)