Skip to content

Commit

Permalink
update lmod error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Apr 16, 2024
1 parent e1c5da7 commit 8f6b679
Showing 1 changed file with 1 addition and 1 deletion.
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 8f6b679

Please sign in to comment.