From 90a0ac993cd01bfff9d9ecf0943a216dec232ecb Mon Sep 17 00:00:00 2001 From: lordforever Date: Mon, 25 Mar 2024 10:28:33 +0530 Subject: [PATCH] comments --- build_system/src/test.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_system/src/test.rs b/build_system/src/test.rs index eede4b9847e..f1b7b8d19b6 100644 --- a/build_system/src/test.rs +++ b/build_system/src/test.rs @@ -960,6 +960,7 @@ where // We increment the number of tests by one because if this is an odd number, we would skip // one test. let count = files.len() / nb_parts + 1; + // We remove the files we don't want to test. let start = current_part * count; for path in files.iter().skip(start).take(count) { remove_file(&rust_path.join(path))?; @@ -1112,6 +1113,7 @@ fn prepare_files_callback_success<'a>( let first_file_name = files.lines().next().unwrap_or(""); // If the first line ends with a `/`, we treat all lines in the file as a directory. if first_file_name.ends_with('/') { + // Removing the failing tests. if let Ok(files) = std::fs::read_to_string(file_path) { for file in files.split('\n').map(|line| line.trim()).filter(|line| !line.is_empty()) @@ -1128,6 +1130,7 @@ fn prepare_files_callback_success<'a>( ); } } else { + // Removing the failing tests. if let Ok(files) = std::fs::read_to_string(file_path) { for file in files.split('\n').map(|line| line.trim()).filter(|line| !line.is_empty())