Skip to content

Commit 23c93bc

Browse files
committed
Be more careful about what we unset
1 parent 070041f commit 23c93bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/tests_eessi_module.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ jobs:
107107
module load EESSI/${{matrix.EESSI_VERSION}}
108108
# EESSI_DEBUG_INIT/EESSI_ARCHDETECT_OPTIONS only relevant for Lmod init
109109
unset EESSI_DEBUG_INIT
110-
unset EESSI_ARCHDETECT_OPTIONS
111110
# Store all relevant environment variables
112-
env | grep -E '(^EESSI_|^LMOD_RC|^LMOD_PACKAGE_PATH|^MODULEPATH)' | sort > "${moduleoutfile}"
111+
env | grep -E '(^EESSI_|^LMOD_RC|^LMOD_PACKAGE_PATH|^MODULEPATH)' | grep -v EESSI_ARCHDETECT_OPTIONS | sort > "${moduleoutfile}"
113112
module unload EESSI/${{matrix.EESSI_VERSION}}
114113
115114
# We should only have two EESSI_* variables defined (which set the overrides)

0 commit comments

Comments
 (0)