From eb43ced766a6a6d973f265df599c50b83af9fb76 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 11 Aug 2022 11:14:25 +0200 Subject: [PATCH] TT#81700 BASE_DIR as absolute path to avoid errors > Thu Aug 11 11:12:14 CEST 2022 - Setting config debug off > ./set_config.sh: line 128: ./bin/config_debug.pl: No such file or directory Change-Id: Ie53102256ef331318ef05b2bf3c78220b84208df --- get_results.sh | 4 +++- run_tests.sh | 4 +++- set_config.sh | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/get_results.sh b/get_results.sh index 10645998..241d8f92 100755 --- a/get_results.sh +++ b/get_results.sh @@ -1,6 +1,8 @@ #!/bin/bash RUN_DIR="$(dirname "$0")" -export BASE_DIR=${BASE_DIR:-$RUN_DIR} +BASE_DIR=${BASE_DIR:-$RUN_DIR} +# absolute path +export BASE_DIR=$(readlink -f "${BASE_DIR}") BIN_DIR="${BASE_DIR}/bin" PROFILE="${PROFILE:-}" GROUP="${GROUP:-scenarios}" diff --git a/run_tests.sh b/run_tests.sh index 3c91bab0..6e3955f1 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,6 +1,8 @@ #!/bin/bash RUN_DIR="$(dirname "$0")" -export BASE_DIR=${BASE_DIR:-$RUN_DIR} +BASE_DIR=${BASE_DIR:-$RUN_DIR} +# absolute path +export BASE_DIR=$(readlink -f "${BASE_DIR}") # Set up the environment, to use local perl modules export PERL5LIB="${BASE_DIR}/lib" BIN_DIR="${BASE_DIR}/bin" diff --git a/set_config.sh b/set_config.sh index b87dc751..aebaa965 100755 --- a/set_config.sh +++ b/set_config.sh @@ -20,7 +20,9 @@ # set -e RUN_DIR="$(dirname "$0")" -export BASE_DIR=${BASE_DIR:-$RUN_DIR} +BASE_DIR=${BASE_DIR:-$RUN_DIR} +# absolute path +export BASE_DIR=$(readlink -f "${BASE_DIR}") # Set up the environment, to use local perl modules export PERL5LIB="${BASE_DIR}/lib" BIN_DIR="${BASE_DIR}/bin"