From f0d9eeced8ec01045b2849ea2cc3c72773282d70 Mon Sep 17 00:00:00 2001 From: grandizzy <38490174+grandizzy@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:25:38 +0300 Subject: [PATCH] chore(fuzz): delete fuzz dir relative to proj root (#7810) --- crates/forge/bin/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/forge/bin/main.rs b/crates/forge/bin/main.rs index 2aaa82d62fdb..eb676b88806b 100644 --- a/crates/forge/bin/main.rs +++ b/crates/forge/bin/main.rs @@ -81,11 +81,12 @@ fn main() -> Result<()> { } ForgeSubcommand::Clean { root } => { let config = utils::load_config_with_root(root); - config.project()?.cleanup()?; + let proj = config.project()?; + proj.cleanup()?; // Remove fuzz cache directory. if let Some(fuzz_cache) = config.fuzz.failure_persist_dir { - let _ = std::fs::remove_dir_all(fuzz_cache); + let _ = std::fs::remove_dir_all(proj.root().join(fuzz_cache)); } Ok(()) }