Skip to content

Commit 627be08

Browse files
committed
Explicitly set a locale to avoid dealing with Lmod behaviour around LC_ALL
1 parent b87ff12 commit 627be08

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/tests_eessi_module.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)