Skip to content
Browse files

ignore unknown output in integration eval script

Good for when you still have debugging turned on.
  • Loading branch information...
1 parent a525f0b commit cf2c6412c72d28714fb0ad9644ddc2820a6c7633 @wmorgan committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 integration-tests/eval.rb
View
7 integration-tests/eval.rb
@@ -18,8 +18,11 @@
l =~ /(\d+) (.*)$/ or raise "couldn't parse line #{ARGF.lineno}: #{l.inspect}"
num, q = $1.to_i, $2
qin.puts q
- result = qout.gets
- result =~ /found (\d+) results in ([\d\.]+)ms/ or raise "couldn't parse program output: #{result.inspect}"
+ while true
+ result = qout.gets
+ result =~ /found (\d+) results in ([\d\.]+)ms/ and break
+ puts ";; warning: couldn't parse program output: #{result.inspect}"
+ end
num_found, time = $1.to_i, $2.to_f
if num_found != num
puts "ERROR: expected #{num}, got #{num_found} for query #{q.inspect}"

0 comments on commit cf2c641

Please sign in to comment.
Something went wrong with that request. Please try again.