diff --git a/qa/os/src/test/java/org/elasticsearch/packaging/test/SqlCliTests.java b/qa/os/src/test/java/org/elasticsearch/packaging/test/SqlCliTests.java index 058279cfac45f..f681cb9df2a09 100644 --- a/qa/os/src/test/java/org/elasticsearch/packaging/test/SqlCliTests.java +++ b/qa/os/src/test/java/org/elasticsearch/packaging/test/SqlCliTests.java @@ -24,14 +24,12 @@ import org.junit.Before; import static org.hamcrest.CoreMatchers.containsString; -import static org.junit.Assume.assumeFalse; import static org.junit.Assume.assumeTrue; public class SqlCliTests extends PackagingTestCase { @Before public void filterDistros() { assumeTrue("only default distro", distribution.flavor == Distribution.Flavor.DEFAULT); - assumeFalse("no docker", distribution.isDocker()); } public void test010Install() throws Exception { diff --git a/x-pack/plugin/sql/src/main/bin/elasticsearch-sql-cli b/x-pack/plugin/sql/src/main/bin/elasticsearch-sql-cli index 4bafba9bda3a8..4d145afd4b100 100755 --- a/x-pack/plugin/sql/src/main/bin/elasticsearch-sql-cli +++ b/x-pack/plugin/sql/src/main/bin/elasticsearch-sql-cli @@ -4,6 +4,8 @@ # or more contributor license agreements. Licensed under the Elastic License; # you may not use this file except in compliance with the Elastic License. +CLI_PARAMETERS="$@" + source "`dirname "$0"`"/elasticsearch-env source "$ES_HOME"/bin/x-pack-env @@ -14,4 +16,4 @@ exec \ "$JAVA" \ "$XSHARE" \ -jar "$CLI_JAR" \ - "$@" + $CLI_PARAMETERS