test: don't export $TOOLS_DIR

It's not (and shouldn't be) used by any test scripts.
This commit is contained in:
Franck Bui 2023-03-22 10:33:58 +01:00
parent 256a835f1c
commit 04ef5d1bd7

View file

@ -107,10 +107,10 @@ fi
TEST_BASE_DIR=${TEST_BASE_DIR:-$(realpath "$(dirname "${BASH_SOURCE[0]}")")}
TEST_UNITS_DIR="$(realpath "$TEST_BASE_DIR/units")"
SOURCE_DIR=$(realpath "$TEST_BASE_DIR/..")
TOOLS_DIR="$SOURCE_DIR/tools"
# These variables are used by test scripts
export TEST_BASE_DIR TEST_UNITS_DIR SOURCE_DIR TOOLS_DIR
export TEST_BASE_DIR TEST_UNITS_DIR SOURCE_DIR
TOOLS_DIR="$SOURCE_DIR/tools"
# note that find-build-dir.sh will return $BUILD_DIR if provided, else it will try to find it
if get_bool "${NO_BUILD:=}"; then
BUILD_DIR="$SOURCE_DIR"