Navigation Menu

Skip to content

Commit

Permalink
run-regression-test: return true on success
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 13, 2018
1 parent 502968e commit 3a0913a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/groonga-query-log/command/run-regression-test.rb
Expand Up @@ -361,6 +361,7 @@ def run_test
@n_ready_waits -= 1
return true unless @n_ready_waits.zero?

same = true
query_log_paths.each do |query_log_path|
log_path = test_log_path(query_log_path)
if @options[:skip_finished_queries] and log_path.exist?
Expand All @@ -384,7 +385,9 @@ def run_test
else
callback = nil
end
verify_server(log_path, query_log_path, &callback)
unless verify_server(log_path, query_log_path, &callback)
same = false
end
rescue Interrupt
puts("Interrupt: #{query_log_path}")
end
Expand All @@ -399,7 +402,7 @@ def run_test
old_thread.join
new_thread.join

true
same
end

def verify_server(test_log_path, query_log_path, &callback)
Expand Down

0 comments on commit 3a0913a

Please sign in to comment.