Skip to content

Commit 87c284c

Browse files
Only read rust test files
1 parent 9d104a0 commit 87c284c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_system/src/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,9 @@ where
928928
}
929929
fn file_handling(file: &Path) -> Result<(), String> {
930930
let path_str = file.display().to_string().replace("\\", "/");
931-
if should_not_remove_test(&path_str) {
931+
if !path_str.ends_with(".rs") {
932+
return Ok(())
933+
} else if should_not_remove_test(&path_str) {
932934
return Ok(());
933935
} else if should_remove_test(file, &path_str) {
934936
return std::fs::remove_file(file)

0 commit comments

Comments
 (0)