Skip to content

Commit f0c5c98

Browse files
committed
[CI] Log test results to a file in Buildkite
1 parent 946acf7 commit f0c5c98

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ steps:
4949
TRANSPORT_VERSION: "{{ matrix.transport }}"
5050
RUBY_SOURCE: "{{ matrix.ruby_source }}"
5151
TEST_SUITE: "platinum"
52+
DEBUG: true
5253
command: ./.buildkite/run-yaml-tests.sh
5354
- wait: ~
5455
continue_on_failure: true

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
end
5757

5858
tests_path = File.expand_path('./tmp', __dir__)
59-
60-
logger = Logger.new($stdout)
59+
logfile = File.expand_path "#{tests_path}/tests-for-transport-#{ENV['TRANSPORT_VERSION']}-ruby-#{ENV['RUBY_VERSION']}.log"
60+
logger = Logger.new(File.open(logfile, 'w'))
6161
logger.level = Logger::WARN unless ENV['DEBUG']
6262

6363
# If we're running in a release branch, download the corresponding branch for tests

0 commit comments

Comments
 (0)