We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed64c1c commit 46179b5Copy full SHA for 46179b5
elasticsearch-api/spec/yaml-test-runner/run.rb
@@ -81,7 +81,7 @@ def serverless?
81
82
# If we're running in a release branch, download the corresponding branch for tests
83
current_branch = `git rev-parse --abbrev-ref HEAD`.strip
84
-branch = current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || ENV['ES_YAML_TESTS_BRANCH'] || nil
+branch = ENV['ES_YAML_TESTS_BRANCH'] || current_branch.match(/[0-9]\.[0-9]+/)&.[](0) | nil
85
Elasticsearch::Tests::Downloader::run(tests_path, branch)
86
87
runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger)
0 commit comments