Skip to content

Commit e22aafe

Browse files
committed
Make sure load/unload really does empty the environment
1 parent edc931c commit e22aafe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests_eessi_module.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ jobs:
113113
env | grep -E '(^EESSI_|^LMOD_RC|^LMOD_PACKAGE_PATH)' | sort > "${moduleoutfile}"
114114
module unload EESSI/${{matrix.EESSI_VERSION}}
115115
116+
# We should only have two EESSI_* variables defined (which set the overrides)
117+
if [ "$(env | grep -c '^EESSI')" -ne 2 ]; then
118+
echo "Expected 2 EESSI-related environment variables, but found a different number."
119+
env | grep '^EESSI'
120+
exit 1
121+
fi
122+
116123
# Now do the init script initialisation
117124
source ./init/bash
118125
# source script version sets environment variables to force archdetect, ignore these

0 commit comments

Comments
 (0)