Skip to content

Commit 2d82a26

Browse files
committed
[API] Test Runner: Fixes using SINGLE_TEST when running xpack tests
1 parent 7138e41 commit 2d82a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elasticsearch-xpack/spec/rest_yaml_tests_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
TEST_HOST, TEST_PORT = 'localhost', '9200'
3636
end
3737

38-
raw_certificate = File.read(File.join(PROJECT_PATH, '/.ci/certs/testnode.crt'))
38+
raw_certificate = File.read(File.join(PROJECT_PATH, '.ci/certs/testnode.crt'))
3939
certificate = OpenSSL::X509::Certificate.new(raw_certificate)
4040

4141
raw_key = File.read(File.join(PROJECT_PATH, '/.ci/certs/testnode.key'))
@@ -69,13 +69,13 @@
6969

7070
SINGLE_TEST = if ENV['SINGLE_TEST'] && !ENV['SINGLE_TEST'].empty?
7171
test_target = ENV['SINGLE_TEST']
72-
path = File.expand_path(File.dirname('..'), '..')
72+
path = File.expand_path(File.dirname('..'))
7373

7474
if test_target.match?(/\.yml$/)
7575
["#{path}/../tmp/rest-api-spec/test/platinum/#{test_target}"]
7676
else
7777
Dir.glob(
78-
["#{PROJECT_PATH}/../tmp/rest-api-spec/test/platinum/#{test_target}/*.yml"]
78+
["#{PROJECT_PATH}/tmp/rest-api-spec/test/platinum/#{test_target}/*.yml"]
7979
)
8080
end
8181
end

0 commit comments

Comments
 (0)