about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--build_system/src/test.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_system/src/test.rs b/build_system/src/test.rs
index 7785957541f..bbe2322f93d 100644
--- a/build_system/src/test.rs
+++ b/build_system/src/test.rs
@@ -928,7 +928,9 @@ where
     }
     fn file_handling(file: &Path) -> Result<(), String> {
         let path_str = file.display().to_string().replace("\\", "/");
-        if should_not_remove_test(&path_str) {
+        if !path_str.ends_with(".rs") {
+            return Ok(())
+        } else if should_not_remove_test(&path_str) {
             return Ok(());
         } else if should_remove_test(file, &path_str) {
             return std::fs::remove_file(file)