From f42afc61683646b60c960a0317bc4a9e0795f080 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 2 Jun 2018 23:07:02 -0500 Subject: [PATCH] Less sensitive error detection in build logs (#8278) * Less sensitive error detection in build logs * Fix test_log_parser unit test --- lib/spack/external/ctest_log_parser.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/spack/external/ctest_log_parser.py b/lib/spack/external/ctest_log_parser.py index fc472f28f8..0437b6e524 100644 --- a/lib/spack/external/ctest_log_parser.py +++ b/lib/spack/external/ctest_log_parser.py @@ -116,18 +116,15 @@ def match(self, text): 'Error:', 'error', 'undefined reference', 'multiply defined')), "([^:]+): error[ \\t]*[0-9]+[ \\t]*:", "([^:]+): (Error:|error|undefined reference|multiply defined)", - "([^ :]+) : (error|fatal error|catastrophic error)", + "([^ :]+) ?: (error|fatal error|catastrophic error)", "([^:]+)\\(([^\\)]+)\\) ?: (error|fatal error|catastrophic error)"), - prefilter( - lambda s: s.count(':') >= 2, - "[^ :]+:[0-9]+: [^ \\t]"), "^[Bb]us [Ee]rror", "^[Ss]egmentation [Vv]iolation", "^[Ss]egmentation [Ff]ault", ":.*[Pp]ermission [Dd]enied", "^Error ([0-9]+):", "^Fatal", - "^Error: ", + "^[Ee]rror: ", "^Error ", "[0-9] ERROR: ", "^\"[^\"]+\", line [0-9]+: [^Ww]",