Skip to content

Commit c8a6ec4

Browse files
committed
[XPACK] Sometimes the SINGLE_TEST env variable is the empty string
1 parent 3bc34be commit c8a6ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-xpack/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
YAML_FILES_DIRECTORY = "#{File.expand_path(File.dirname('..'), '..')}" +
6262
"/tmp/elasticsearch/x-pack/plugin/src/test/resources/rest-api-spec/test"
63-
SINGLE_TEST = if ENV['SINGLE_TEST']
63+
SINGLE_TEST = if ENV['SINGLE_TEST'] && !ENV['SINGLE_TEST'].empty?
6464
["#{File.expand_path(File.dirname('..'), '..')}" +
6565
"/tmp/elasticsearch/x-pack/plugin/src/test/resources/rest-api-spec/test/#{ENV['SINGLE_TEST']}"]
6666
end

0 commit comments

Comments
 (0)