Skip to content

Commit 4aa9d83

Browse files
committed
jobutils: Don't treat bogus Geant message about exceptions as error
1 parent f0eebb6 commit 4aa9d83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Utilities/Tools/jobutils.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ taskwrapper() {
189189
-e \"terminate called without an active\" \
190190
-e \"\*\*\* Error in\"" # <--- LIBC fatal error messages
191191

192-
grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} >> encountered_exceptions_list 2>/dev/null"
192+
exclude_pattern="-e \"To change the tolerance or the exception severity\""
193+
194+
grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} | grep -a -v ${exclude_pattern} >> encountered_exceptions_list 2>/dev/null"
193195
eval ${grepcommand}
194196

195-
grepcommand="grep -a -h --count ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} 2>/dev/null"
197+
grepcommand="cat encountered_exceptions_list 2>/dev/null | wc -l"
196198
# using eval here since otherwise the pattern is translated to a
197199
# a weirdly quoted stringlist
198200
RC=$(eval ${grepcommand})

0 commit comments

Comments
 (0)