Skip to content

Commit

Permalink
fuzzers: minor fix introduced during a bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed May 13, 2022
1 parent b9b5d14 commit 379f983
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fuzzers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,9 @@ def run_fuzzers(gcs_client: gcs.Client, pause_evt: threading.Event,
fuzzer.signal(signal.SIGCONT)

# Fuzz crash found?
done_fuzzers = [fuzzer for fuzzer in fuzzers if fuzzer.check_if_crashed()]
done_fuzzers = [
fuzzer for fuzzer in fuzzers if fuzzer.check_if_crashed()
]
for fuzzer in done_fuzzers:
bucket.blob(f'logs/{fuzzer.log_relpath}').upload_from_filename(
str(fuzzer.log_fullpath))
Expand Down Expand Up @@ -924,9 +926,6 @@ def main() -> None:
thread_exception: typing.Optional[threading.ExceptHookArgs] = None
exception_happened_in_thread = threading.Event()

thread_exception: typing.Optional[threading.ExceptHookArgs] = None
exception_happened_in_thread = threading.Event()

# Make sure to cleanup upon ctrl-c or upon any exception in a thread
def new_excepthook(args: threading.ExceptHookArgs) -> None:
nonlocal thread_exception
Expand Down

0 comments on commit 379f983

Please sign in to comment.