File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 67
67
end
68
68
end
69
69
70
- YAML_FILES_DIRECTORY = "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ STACK_VERSION . match? ( /^8\. / ) ? 'compatTest' : 'test' } /platinum"
70
+ tests_dir = [ true , 'true' ] . include? ( ENV [ 'ELASTIC_CLIENT_APIVERSIONING' ] ) ? 'compatTest' : 'test'
71
+ YAML_FILES_DIRECTORY = "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ tests_dir } /platinum" . freeze
71
72
72
73
SINGLE_TEST = if ENV [ 'SINGLE_TEST' ] && !ENV [ 'SINGLE_TEST' ] . empty?
73
74
test_target = ENV [ 'SINGLE_TEST' ]
74
75
path = File . expand_path ( File . dirname ( '..' ) )
75
76
76
77
if test_target . match? ( /\. yml$/ )
77
- [ "#{ path } /../tmp/rest-api-spec/test /platinum/#{ test_target } " ]
78
+ [ "#{ path } /../tmp/rest-api-spec/#{ tests_dir } /platinum/#{ test_target } " ]
78
79
else
79
80
Dir . glob (
80
- [ "#{ PROJECT_PATH } /tmp/rest-api-spec/test /platinum/#{ test_target } /**/*.yml" ]
81
+ [ "#{ PROJECT_PATH } /tmp/rest-api-spec/#{ tests_dir } /platinum/#{ test_target } /**/*.yml" ]
81
82
)
82
83
end
83
84
end
You can’t perform that action at this time.
0 commit comments