Skip to content

Commit

Permalink
rename --dry to --no-git-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeriann committed Aug 29, 2024
1 parent 72f7baf commit c67e7f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/run_fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
db = None
shell = None
perform_checks = True
dry = False
no-git-checks = False
max_queries = 1000
verification = False
for param in sys.argv:
Expand All @@ -39,8 +39,8 @@
seed = int(param.replace('--seed=', ''))
elif param.startswith('--max_queries='):
max_queries = int(param.replace('--max_queries=', ''))
elif param.startswith('--dry'):
dry = param.replace('--dry=', '').lower() == 'true'
elif param.startswith('--no-git-checks'):
no-git-checks = param.replace('--no-git-checks=', '').lower() == 'true'

if fuzzer is None:
print("Unrecognized fuzzer to run, expected e.g. --sqlsmith or --duckfuzz")
Expand Down Expand Up @@ -103,7 +103,7 @@ def run_shell_command(cmd):

# first get a list of all github issues, and check if we can still reproduce them

if dry:
if no-git-checks:
current_errors = []
else:
current_errors = fuzzer_helper.extract_github_issues(shell, perform_checks)
Expand Down Expand Up @@ -212,5 +212,5 @@ def run_shell_command(cmd):
print(f"{error_msg}")
print(f"================MARKER====================")

if not dry:
if not no-git-checks:
fuzzer_helper.file_issue(cmd, error_msg, fuzzer_name, seed, git_hash)

0 comments on commit c67e7f9

Please sign in to comment.