From ef5bbfa6e996c0066ea9e0b45143d9806cbef77e Mon Sep 17 00:00:00 2001 From: Dom Heinzeller Date: Thu, 7 Mar 2024 21:06:17 -0700 Subject: [PATCH] Update util/util_tests.sh --- util/check_package_config.py | 4 ++++ util/util_tests.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/util/check_package_config.py b/util/check_package_config.py index 2ebc54600..77eaf0002 100755 --- a/util/check_package_config.py +++ b/util/check_package_config.py @@ -21,6 +21,10 @@ SPACK_ROOT = os.getenv("SPACK_ROOT") assert SPACK_ROOT, "$SPACK_ROOT must be set but is not!" +print(SPACK_ROOT) +print(listdir(SPACK_ROOT)) +print(os.listdir(os.path.join(SPACK_ROOT, "lib/spack/external/_vendoring"))) + sys.path.append(os.path.join(SPACK_ROOT, "lib/spack/external/_vendoring")) from ruamel import yaml diff --git a/util/util_tests.sh b/util/util_tests.sh index 609a1fcdf..e4f507052 100755 --- a/util/util_tests.sh +++ b/util/util_tests.sh @@ -80,6 +80,7 @@ fi ## Check check_package_config.py export SPACK_ENV=${SPACK_STACK_DIR}/util/test_env +export SPACK_ROOT=${SPACK_STACK_DIR}/spack output_checksum=$(${SPACK_STACK_DIR}/util/check_package_config.py | sort | md5sum) reference_checksum=$(cat ${SPACK_STACK_DIR}/util/test_env/package_check_baseline.txt | md5sum) if [[ "$output_checksum" != "$reference_checksum" ]]; then