Skip to content

Commit 16100df

Browse files
committed
Fix TIMEOUT grep for traces
1 parent 7764ca3 commit 16100df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update_bench_traces.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def print_res (i)
9797
vulner = lines.grep(/vulnerable:[ ]*([0-9]*)/) { |x| $1.to_i } .first
9898
unsafe = lines.grep(/unsafe:[ ]*([0-9]*)/) { |x| $1.to_i } .first
9999
uncalled = lines.grep(/will never be called/).reject {|x| x =~ /__check/}.size
100-
res = lines.grep(/TIMEOUT\s*(.*) s.*$/) { |x| $1 }
100+
res = lines.grep(/TIMEOUT\s*(\d*) s.*$/) { |x| $1 }
101101
if res == [] then
102102
dur = lines.grep(/^Duration: (.*) s/) { |x| $1 }
103103
cod = lines.grep(/EXITCODE\s*(.*)$/) { |x| $1 }

0 commit comments

Comments
 (0)