File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
elasticsearch-api/spec/yaml-test-runner Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 67
67
env :
68
68
RUBY_VERSION : " 3.3"
69
69
STACK_VERSION : 8.15.0-SNAPSHOT
70
+ ES_YAML_TESTS_BRANCH : 8.15
70
71
TRANSPORT_VERSION : " 8.3"
71
72
RUBY_SOURCE : " ruby"
72
73
TEST_SUITE : " platinum"
Original file line number Diff line number Diff line change 55
55
CLIENT = Elasticsearch ::Client . new ( host : host , transport_options : transport_options )
56
56
end
57
57
58
-
59
58
tests_path = File . expand_path ( './tmp' , __dir__ )
60
59
61
60
logger = Logger . new ( $stdout)
62
61
logger . level = Logger ::WARN unless ENV [ 'DEBUG' ]
63
62
64
- Elasticsearch ::Tests ::Downloader ::run ( tests_path )
63
+ # If we're running in a release branch, download the corresponding branch for tests
64
+ current_branch = `git rev-parse --abbrev-ref HEAD` . strip
65
+ branch = current_branch . match ( /[0-9]\. [0-9]+/ ) [ 0 ] || ENV [ 'ES_YAML_TESTS_BRANCH' ] || nil
66
+ Elasticsearch ::Tests ::Downloader ::run ( tests_path , branch )
65
67
Elasticsearch ::Tests ::TestRunner . new ( CLIENT , tests_path , logger ) . run
You can’t perform that action at this time.
0 commit comments