Skip to content

Commit 2da4c25

Browse files
committed
Update runner for latest Harvey version.
1 parent 4d7835c commit 2da4c25

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

run-campaigns.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,19 @@ def process_all_tasks(tasks):
233233
issues = fuzzer_result["issues"]
234234
violations = dict({})
235235
for issue in issues:
236-
msg = issue["description"]["tail"]
236+
tail = issue["description"]["tail"]
237237
m = re.match(
238-
"A user-provided assertion failed with the message '(.*)'.", msg
238+
"A user-provided assertion failed with the message '(.*)'.",
239+
tail,
239240
)
240-
t = issue["extra"]["discoveryTime"]
241-
violations[m[1]] = t
241+
if m:
242+
msg = m[1]
243+
t = issue["extra"]["discoveryTime"]
244+
if msg in violations:
245+
ct = violations[msg]
246+
if ct < t:
247+
t = ct
248+
violations[msg] = t
242249
elif fuzzer_name == "echidna":
243250
duration = time.time_ns() - task["start-time"]
244251
violations = dict({})

0 commit comments

Comments
 (0)