Skip to content

Commit

Permalink
[CI] Log test results to a file in Buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Nov 13, 2024
1 parent 3ef7691 commit eb299b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ steps:
TRANSPORT_VERSION: "{{ matrix.transport }}"
RUBY_SOURCE: "{{ matrix.ruby_source }}"
TEST_SUITE: "platinum"
DEBUG: true
command: ./.buildkite/run-yaml-tests.sh
- wait: ~
continue_on_failure: true
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch-api/spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
end

tests_path = File.expand_path('./tmp', __dir__)

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

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

0 comments on commit eb299b7

Please sign in to comment.