From 4aa9d83fe27e231e1e2c73b99ee8d93e7c0065ca Mon Sep 17 00:00:00 2001 From: David Rohr Date: Sun, 13 Apr 2025 14:02:18 +0200 Subject: [PATCH] jobutils: Don't treat bogus Geant message about exceptions as error --- Utilities/Tools/jobutils.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Utilities/Tools/jobutils.sh b/Utilities/Tools/jobutils.sh index 4d51ac8522c6d..54f1394197815 100644 --- a/Utilities/Tools/jobutils.sh +++ b/Utilities/Tools/jobutils.sh @@ -189,10 +189,12 @@ taskwrapper() { -e \"terminate called without an active\" \ -e \"\*\*\* Error in\"" # <--- LIBC fatal error messages - grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} >> encountered_exceptions_list 2>/dev/null" + exclude_pattern="-e \"To change the tolerance or the exception severity\"" + + grepcommand="grep -a -H ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} | grep -a -v ${exclude_pattern} >> encountered_exceptions_list 2>/dev/null" eval ${grepcommand} - grepcommand="grep -a -h --count ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES} 2>/dev/null" + grepcommand="cat encountered_exceptions_list 2>/dev/null | wc -l" # using eval here since otherwise the pattern is translated to a # a weirdly quoted stringlist RC=$(eval ${grepcommand})