Skip to content

Commit

Permalink
Update runner for latest Harvey version.
Browse files Browse the repository at this point in the history
  • Loading branch information
wuestholz committed Oct 9, 2023
1 parent 4d7835c commit 2da4c25
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions run-campaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,19 @@ def process_all_tasks(tasks):
issues = fuzzer_result["issues"]
violations = dict({})
for issue in issues:
msg = issue["description"]["tail"]
tail = issue["description"]["tail"]
m = re.match(
"A user-provided assertion failed with the message '(.*)'.", msg
"A user-provided assertion failed with the message '(.*)'.",
tail,
)
t = issue["extra"]["discoveryTime"]
violations[m[1]] = t
if m:
msg = m[1]
t = issue["extra"]["discoveryTime"]
if msg in violations:
ct = violations[msg]
if ct < t:
t = ct
violations[msg] = t
elif fuzzer_name == "echidna":
duration = time.time_ns() - task["start-time"]
violations = dict({})
Expand Down

0 comments on commit 2da4c25

Please sign in to comment.