Skip to content

Commit 530bef7

Browse files
committed
debug
1 parent e9c38f0 commit 530bef7

File tree

1 file changed

+6
-1
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+6
-1
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@
5656
end
5757

5858
tests_path = File.expand_path('./tmp', __dir__)
59-
log_filename = "es-#{Elasticsearch::VERSION}-transport-#{ENV['TRANSPORT_VERSION']}-#{ENV['RUBY_SOURCE']}-#{ENV['RUBY_VERSION']}.log"
59+
ruby_version = if defined? JRUBY_VERSION
60+
"jruby-#{JRUBY_VERSION}"
61+
else
62+
RUBY_VERSION
63+
end
64+
log_filename = "es-#{Elasticsearch::VERSION}-transport-#{ENV['TRANSPORT_VERSION']}-#{ruby_version}.log"
6065
logfile = File.expand_path "../../tmp/#{log_filename}", __dir__
6166
logger = Logger.new(File.open(logfile, 'w'))
6267
logger.level = ENV['DEBUG'] ? Logger::DEBUG : Logger::WARN

0 commit comments

Comments
 (0)