From 6bdcfcdefddd961717766392b69fd03cc1910758 Mon Sep 17 00:00:00 2001 From: kalyanr Date: Sun, 5 Nov 2023 19:09:41 +0530 Subject: [PATCH] fix Signed-off-by: kalyanr --- .ci/run-opensearch.sh | 3 +-- .ci/run-tests | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/run-opensearch.sh b/.ci/run-opensearch.sh index ecb61dbb3..5db272d7a 100644 --- a/.ci/run-opensearch.sh +++ b/.ci/run-opensearch.sh @@ -4,7 +4,7 @@ # to form a cluster suitable for running the REST API tests. # # Export the NUMBER_OF_NODES variable to start more than 1 node - +printenv script_path=$(dirname $(realpath -s $0)) source $script_path/imports.sh set -euo pipefail @@ -87,7 +87,6 @@ END --name "$node_name" \ --network "$network_name" \ --env "ES_JAVA_OPTS=-Xms1g -Xmx1g" \ - --env OPENSEARCH_VERSION=$OPENSEARCH_VERSION \ "${environment[@]}" \ "${volumes[@]}" \ "${security[@]}" \ diff --git a/.ci/run-tests b/.ci/run-tests index 258da8a55..442fb9dc4 100755 --- a/.ci/run-tests +++ b/.ci/run-tests @@ -28,6 +28,7 @@ source $script_path/imports.sh set -euo pipefail echo -e "\033[1m>>>>> Start server container >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" +echo $OPENSEARCH_VERSION DETACH=true bash $script_path/run-opensearch.sh echo -e "\033[1m>>>>> Repository specific tests >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"