Skip to content

Commit

Permalink
Update corpus builder
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 25, 2024
1 parent 7849702 commit c525541
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fuzzer/build-corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def main():
out_dir = repo / "fuzzer" / "corpus"
out_dir.mkdir(exist_ok=True)

# Clear the corpus
# Clear the corpus of all files we created
for existing in out_dir.iterdir():
existing.unlink()
if existing.name.endswith(".just"):
existing.unlink()

for (name, source) in corpus.items():
out_file: Path = out_dir / name
Expand Down

0 comments on commit c525541

Please sign in to comment.