File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -212,14 +212,17 @@ jobs:
212212 module unuse .github/workflows/modules
213213 module avail
214214
215- # Store the initial environment (ignoring Lmod tables)
216- env | grep -v _ModuleTable | sort > "${initial_env_file}"
215+ # Set a (safe) locale
216+ export LC_ALL=C
217+
218+ # Store the initial environment (ignoring Lmod tables and internal stack varibles)
219+ env | grep -v _ModuleTable | grep -v __LMOD_STACK | sort > "${initial_env_file}"
217220
218221 # Do (and undo) loading the EESSI module
219222 CPU_ARCH=$(./init/eessi_archdetect.sh -a cpupath)
220223 module load EESSI/${{matrix.EESSI_VERSION}}
221224 module unload EESSI/${{matrix.EESSI_VERSION}}
222- env | grep -v _ModuleTable | sort > "${module_cycled_file}"
225+ env | grep -v _ModuleTable | grep -v __LMOD_STACK | sort > "${module_cycled_file}"
223226
224227 # Now compare the two results (do not expose the files, as they contain the full environment!)
225228 if (diff "${initial_env_file}" "${module_cycled_file}" > /dev/null); then
You can’t perform that action at this time.
0 commit comments