diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2018-06-02 23:07:02 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-06-02 21:07:02 -0700 |
commit | f42afc61683646b60c960a0317bc4a9e0795f080 (patch) | |
tree | 8ddb2b2792546753ccbc8221594fed0ea34c5bb0 | |
parent | d6458a6ba754f2e64ebd43e0f90632e04feac8fb (diff) | |
download | spack-f42afc61683646b60c960a0317bc4a9e0795f080.tar.gz spack-f42afc61683646b60c960a0317bc4a9e0795f080.tar.bz2 spack-f42afc61683646b60c960a0317bc4a9e0795f080.tar.xz spack-f42afc61683646b60c960a0317bc4a9e0795f080.zip |
Less sensitive error detection in build logs (#8278)
* Less sensitive error detection in build logs
* Fix test_log_parser unit test
-rw-r--r-- | lib/spack/external/ctest_log_parser.py | 7 |
1 files 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 @@ _error_matches = [ '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]", |