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 7, 2024
1 parent 946acf7 commit bd77867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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
2 changes: 1 addition & 1 deletion elasticsearch-api/spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

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

logger = Logger.new($stdout)
logger = Logger.new("#{tests_path}/transport-#{ENV['TRANSPORT_VERSION']}-#{ENV['RUBY_VERSION']}.log")
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 bd77867

Please sign in to comment.