diff --git a/scripts/environment.sh b/scripts/environment.sh index ae5b139..263271b 100644 --- a/scripts/environment.sh +++ b/scripts/environment.sh @@ -1,4 +1,5 @@ #!/bin/bash +export LMOD_SH_DBG_ON=1 # Set up the runtime environment by sourcing the environmentXXX.sh scripts in # the same directory as this script. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/scripts/environment_redhat.sh b/scripts/environment_redhat.sh index 7d1be70..d05af80 100644 --- a/scripts/environment_redhat.sh +++ b/scripts/environment_redhat.sh @@ -4,6 +4,7 @@ # --- # This is working around GitHub Actions running commands in non-login shells # that would otherwise not have the `module` command available. +export LMOD_SH_DBG_ON=1 source /etc/profile.d/modules.sh # --- # --- End GitHub-Actions-specific code --- diff --git a/scripts/environment_redhat_fedora_latest.sh b/scripts/environment_redhat_fedora_latest.sh index 193fac9..f03edb8 100644 --- a/scripts/environment_redhat_fedora_latest.sh +++ b/scripts/environment_redhat_fedora_latest.sh @@ -1,3 +1,4 @@ # Inspired by https://github.com/open-mpi/ompi/issues/11295 to try and # avoid hangs when running MPI tests. export FI_PROVIDER="tcp" +export LMOD_SH_DBG_ON=1 diff --git a/wrappers/runUnprivileged.sh b/wrappers/runUnprivileged.sh index 254106c..741249d 100755 --- a/wrappers/runUnprivileged.sh +++ b/wrappers/runUnprivileged.sh @@ -1,5 +1,6 @@ #!/bin/bash set -x +export LMOD_SH_DBG_ON=1 if [ -n "${OS_CONTAINER}" ] then # We are running under Docker