Skip to content

Commit 46179b5

Browse files
committed
fixup
1 parent ed64c1c commit 46179b5

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+1
-1
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def serverless?
8181

8282
# If we're running in a release branch, download the corresponding branch for tests
8383
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
84+
branch = ENV['ES_YAML_TESTS_BRANCH'] || current_branch.match(/[0-9]\.[0-9]+/)&.[](0) | nil
8585
Elasticsearch::Tests::Downloader::run(tests_path, branch)
8686

8787
runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger)

0 commit comments

Comments
 (0)