From 6a4a7b7a120cd1bc8f50ba71735948957e880ab8 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Fri, 9 Apr 2021 14:09:56 -0400 Subject: [PATCH] don't remove inputs once processed this makes the local mode significantly easier to manage --- .../onefuzz-agent/src/tasks/coverage/libfuzzer_coverage.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/agent/onefuzz-agent/src/tasks/coverage/libfuzzer_coverage.rs b/src/agent/onefuzz-agent/src/tasks/coverage/libfuzzer_coverage.rs index 0a4884ced9..b2e28f8939 100644 --- a/src/agent/onefuzz-agent/src/tasks/coverage/libfuzzer_coverage.rs +++ b/src/agent/onefuzz-agent/src/tasks/coverage/libfuzzer_coverage.rs @@ -122,10 +122,6 @@ impl CoverageTask { if self.record_corpus_coverage(&mut processor, dir).await? { seen_inputs = true; } - - fs::remove_dir_all(&dir.path).await.with_context(|| { - format!("unable to remove readonly_inputs: {}", dir.path.display()) - })?; } if seen_inputs {