Skip to content

Commit

Permalink
chore(fuzz): delete fuzz dir relative to proj root (#7810)
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy authored Apr 29, 2024
1 parent 39d6881 commit f0d9eec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/forge/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit f0d9eec

Please sign in to comment.