Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiradeto committed Sep 5, 2023
1 parent 308039e commit 23d0c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions common/benchmark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def get_project(benchmark):
return benchmark_config.get_config(benchmark)['project']

def get_oss_fuzz_corpus_target(benchmark):
"""Returns oss-fuzz corpus fuzz target of |benchmark|"""
return benchmark_config.get_config(benchmark).get('oss_fuzz_corpus_target')

def get_type(benchmark):
Expand Down
5 changes: 3 additions & 2 deletions experiment/run_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ def add_oss_fuzz_corpus(benchmark, oss_fuzz_corpora_dir):
fuzz targets."""
project = benchmark_utils.get_project(benchmark)
fuzz_target = benchmark_utils.get_fuzz_target(benchmark)
oss_fuzz_corpus_target = benchmark_utils.get_oss_fuzz_corpus_target(benchmark)

oss_fuzz_corpus_target = benchmark_utils.get_oss_fuzz_corpus_target(
benchmark)

if oss_fuzz_corpus_target:
full_fuzz_target = oss_fuzz_corpus_target
elif not fuzz_target.startswith(project):
Expand Down

0 comments on commit 23d0c85

Please sign in to comment.