Skip to content

Commit 800c53d

Browse files
committed
[CI] Log test results to a file in Buildkite
1 parent bf9d59a commit 800c53d

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
@@ -33,6 +33,7 @@ steps:
3333
TRANSPORT_VERSION: "{{ matrix.transport }}"
3434
RUBY_SOURCE: "{{ matrix.ruby_source }}"
3535
TEST_SUITE: "platinum"
36+
DEBUG: true
3637
command: ./.buildkite/run-yaml-tests.sh
3738
- wait: ~
3839
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 "../../tmp/tests-for-transport-#{ENV['TRANSPORT_VERSION']}-ruby-#{ENV['RUBY_VERSION']}.log", __dir__
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)