Skip to content

Commit

Permalink
[CI] Add test_suite to log filename
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Jan 17, 2025
1 parent 2fdad80 commit 61b8ff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .buildkite/run-yaml-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if [[ "$TEST_SUITE" == "serverless" ]]; then
--env "BUILDKITE=${BUILDKITE}" \
--env "TRANSPORT_VERSION=${TRANSPORT_VERSION}" \
--env "ES_YAML_TESTS_BRANCH=${ES_YAML_TESTS_BRANCH}" \
--env "TEST_SUITE=${TEST_SUITE}" \
--env "DEBUG=${DEBUG}" \
--env "QUIET=${QUIET}" \
--volume $repo:/usr/src/app \
Expand All @@ -66,6 +67,7 @@ else
--env "BUILDKITE=${BUILDKITE}" \
--env "TRANSPORT_VERSION=${TRANSPORT_VERSION}" \
--env "ES_YAML_TESTS_BRANCH=${ES_YAML_TESTS_BRANCH}" \
--env "TEST_SUITE=${TEST_SUITE}" \
--env "DEBUG=${DEBUG}" \
--env "QUIET=${QUIET}" \
--volume $repo:/usr/src/app \
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 @@ -56,7 +56,7 @@
tests_path = File.expand_path('./tmp', __dir__)
ruby_version = defined?(JRUBY_VERSION) ? "jruby-#{JRUBY_VERSION}" : "ruby-#{RUBY_VERSION}"

log_filename = "es-#{Elasticsearch::VERSION}-transport-#{ENV['TRANSPORT_VERSION']}-#{ruby_version}.log"
log_filename = "es-#{Elasticsearch::VERSION}-#{ENV['TEST_SUITE']}-transport-#{ENV['TRANSPORT_VERSION']}-#{ruby_version}.log"
logfile = File.expand_path "../../tmp/#{log_filename}", __dir__
logger = Logger.new(File.open(logfile, 'w'))
logger.level = ENV['DEBUG'] ? Logger::DEBUG : Logger::WARN
Expand Down

0 comments on commit 61b8ff6

Please sign in to comment.