Skip to content

Commit

Permalink
fix: don't yield the same build flags more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Aug 17, 2021
1 parent 72c59c0 commit fdbf79f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bugmon/evaluator_configs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def iter_build_flags(cls, bug: EnhancedBug) -> Iterator[BuildFlags]:
if fuzzing is not None:
raw_flags["fuzzing"] = fuzzing

yield BuildFlags(**raw_flags)
new_flags = BuildFlags(**raw_flags)
if new_flags != bug.build_flags:
yield new_flags

@classmethod
def iter_tests(cls, working_dir: Path) -> Iterator[Path]:
Expand Down

0 comments on commit fdbf79f

Please sign in to comment.