Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarLob committed Feb 25, 2025
1 parent 5f8f5f0 commit 51ceb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/cifuzz/fuzz_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
def get_libfuzzer_parallel_options(option):
"""Returns a list containing options to pass to libFuzzer to fuzz using all
available or the specified number of cores."""
if option == 'true':
if option == 'true' or (isinstance(option, bool) and option == True):
cpu_count = str(multiprocessing.cpu_count())
else:
cpu_count = option
Expand Down Expand Up @@ -193,7 +193,7 @@ def fuzz(self, batch=False) -> Optional[FuzzResult]:
if not self.config.report_ooms:
options.arguments.extend(LIBFUZZER_OPTIONS_NO_REPORT_OOM)

if self.config.parallel_fuzzing != 'false':
if self.config.parallel_fuzzing == 'true' or (isinstance(self.config.parallel_fuzzing, bool) and self.config.parallel_fuzzing == True) or isinstance(self.config.parallel_fuzzing, int):
if self.config.sanitizer == 'memory':
# TODO(https://github.com/google/oss-fuzz/issues/11915): Don't gate
# this after jobs is fixed for MSAN.
Expand Down

0 comments on commit 51ceb5b

Please sign in to comment.