From 8f6b67954d44bdc9d01ccfcf23c807a341e3f498 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Tue, 16 Apr 2024 14:00:52 -0600 Subject: [PATCH] update lmod error condition --- test/utilities/moduleex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utilities/moduleex.sh b/test/utilities/moduleex.sh index 7bb4aa21..ef826f8e 100755 --- a/test/utilities/moduleex.sh +++ b/test/utilities/moduleex.sh @@ -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