File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -201,10 +201,10 @@ def process_all_tasks(tasks):
201201 text = True ,
202202 )
203203 elif (
204- fuzzer_name == "echidna"
205- or fuzzer_name == "foundry"
206- or fuzzer_name == "hybrid-echidna"
207- or fuzzer_name == "ityfuzz"
204+ fuzzer_name == "echidna"
205+ or fuzzer_name == "foundry"
206+ or fuzzer_name == "hybrid-echidna"
207+ or fuzzer_name == "ityfuzz"
208208 ):
209209 proc = subprocess .Popen (
210210 " " .join (exe ),
@@ -315,16 +315,18 @@ def process_all_tasks(tasks):
315315 violations [m ] = 1000000000 * dur
316316 elif fuzzer_name == "ityfuzz" :
317317 from eth_abi import abi
318+
318319 duration = time .time_ns () - task ["start-time" ]
319320 violations = dict ({})
320321 ms = re .findall (
321- r' log@(\d+) \"([0-9a-z]+)\"' ,
322+ r" log@(\d+) \"([0-9a-z]+)\"" ,
322323 fuzzer_output ,
323324 flags = re .M ,
324325 )
325- for (ts , log_msg ) in ms :
326- violations [int (abi .decode (['string' ], bytes .fromhex (log_msg ))[0 ])] = int (ts ) - task ["start-time" ]
327-
326+ for ts , log_msg in ms :
327+ violations [
328+ int (abi .decode (["string" ], bytes .fromhex (log_msg ))[0 ])
329+ ] = (int (ts ) - task ["start-time" ])
328330 maze_id = task ["maze-id" ]
329331 rnd_seed = task ["rnd-seed" ]
330332 res = dict (
You can’t perform that action at this time.
0 commit comments