From: BjornMagnussonXA Date: Mon, 8 May 2023 12:44:06 +0000 (+0200) Subject: Test env improvements X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=ab476772c1e9c5affc54dd965bec715e13959a8c;p=nonrtric.git Test env improvements Issue-ID: NONRTRIC-871 Signed-off-by: BjornMagnussonXA Change-Id: I9f4b221d026962fa66f2e5f1636a6d9e63095817 --- diff --git a/test/common/testcase_common.sh b/test/common/testcase_common.sh index 83889f1f..5eb6ab80 100755 --- a/test/common/testcase_common.sh +++ b/test/common/testcase_common.sh @@ -1175,6 +1175,16 @@ if [ $? -ne 0 ] || [ -z "$tmp" ]; then fi echo " python3 is installed and using version: $(python3 --version)" +tmp=$(type jq) +if [ $? -ne 0 ]; then + echo -e $RED"command utility jq (cmd-line json processor) is not installed"$ERED + exit 1 +fi +tmp=$(type envsubst) +if [ $? -ne 0 ]; then + echo -e $RED"command utility envsubst (env var substitution in files) is not installed"$ERED + exit 1 +fi tmp=$(which docker) if [ $? -ne 0 ] || [ -z "$tmp" ]; then echo -e $RED"docker is required to run the test environment, pls install"$ERED @@ -1261,7 +1271,6 @@ echo -e "Application\tApp short name\tImage\ttag\ttag-switch" > $image_list_file # Check if image env var is set and if so export the env var with image to use (used by docker compose files) # arg: __check_and_create_image_var() { - echo $@ if [ $# -ne 7 ]; then echo "Expected arg: " ((IMAGE_ERR++))