Skip to content

Commit

Permalink
Use the correct trial ID
Browse files Browse the repository at this point in the history
  • Loading branch information
DonggeLiu committed Nov 7, 2024
1 parent ccbeb65 commit c9a486c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stage/execution_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def execute(self, result_history: list[Result]) -> Result:

evaluator = Evaluator(builder_runner, benchmark, last_result.work_dirs)
generated_target_name = os.path.basename(benchmark.target_path)
sample_id = os.path.splitext(generated_target_name)[0]
generated_oss_fuzz_project = f'{benchmark.id}-{sample_id}'
generated_oss_fuzz_project = f'{benchmark.id}-{last_result.trial}'
generated_oss_fuzz_project = evaluator_lib.rectify_docker_tag(
generated_oss_fuzz_project)

Expand All @@ -50,7 +49,8 @@ def execute(self, result_history: list[Result]) -> Result:
evaluator.create_ossfuzz_project(generated_oss_fuzz_project,
fuzz_target_path, build_script_path)

status_path = os.path.join(last_result.work_dirs.status, sample_id)
status_path = os.path.join(last_result.work_dirs.status,
f'{last_result.trial:02}')
os.makedirs(status_path, exist_ok=True)

# Try building and running the new target.
Expand Down

0 comments on commit c9a486c

Please sign in to comment.