Skip to content

Commit

Permalink
Update util/util_tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Mar 8, 2024
1 parent 815cd37 commit ef5bbfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions util/check_package_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions util/util_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef5bbfa

Please sign in to comment.