Skip to content

Commit

Permalink
Merge pull request #1129 from berquist/modules
Browse files Browse the repository at this point in the history
Update lmod error detection
  • Loading branch information
berquist authored Apr 17, 2024
2 parents 22795ed + 8f6b679 commit d62858a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildsys/bamboo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ linuxSetMPI() {
*)
echo "Try loading MPI module as-is: ${desiredMPI}"
if ModuleEx load "${desiredMPI}"; then
return
return 0
fi
# Not successful, try something else...
echo "Try loading mpi/${desiredMPI}"
Expand Down
2 changes: 1 addition & 1 deletion test/utilities/moduleex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module $@ 1>"$TEMPOUTFILE" 2>"$TEMPERRFILE" || retval=$?
# Get the retvalue, and scan the temp file for the "ERROR:" (Tcl) or "No
# module" (Lmod/Lua) signature
local errcount
errcount="$(grep -E -c 'ERROR:|No module' $TEMPERRFILE)" || tmp=$?
errcount="$(grep -E -c 'ERROR:|No module|Lmod has detected the following error' $TEMPERRFILE)" || tmp=$?

# Output what was recorded
if [[ -s "$TEMPOUTFILE" ]]; then cat "$TEMPOUTFILE"; fi
Expand Down

0 comments on commit d62858a

Please sign in to comment.