(crashes: Vec<PathBuf>, deopt: &Deopt)
| 688 | } |
| 689 | |
| 690 | fn sanitize_false_alarm_crashes(crashes: Vec<PathBuf>, deopt: &Deopt) -> Result<Vec<PathBuf>> { |
| 691 | let mut retained = Vec::new(); |
| 692 | for fuzz_entry in crashes { |
| 693 | if is_incident_reproducible(&fuzz_entry, deopt)? { |
| 694 | log::info!("{fuzz_entry:?} is reproducible."); |
| 695 | retained.push(fuzz_entry); |
| 696 | } else { |
| 697 | log::debug!("{fuzz_entry:?} is sanitized due to irreproducible."); |
| 698 | std::fs::remove_dir_all(fuzz_entry)?; |
| 699 | } |
| 700 | } |
| 701 | Ok(retained) |
| 702 | } |
| 703 | |
| 704 | fn is_artcraft_file(file: &Path) -> bool { |
| 705 | if let Some(file_name) = file.file_name() { |
no test coverage detected