diff options
author | bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-09-26 10:35:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 10:35:04 +0200 |
commit | 6ccda813684b6ec42abe7294e9fc49b74426578a (patch) | |
tree | 4e79a4d00a1f5e3b9edaeacddc4cdfbcad2de11a /lib | |
parent | 34415f6878b494a80330eb8e7418930c3b28ed53 (diff) | |
download | spack-6ccda813684b6ec42abe7294e9fc49b74426578a.tar.gz spack-6ccda813684b6ec42abe7294e9fc49b74426578a.tar.bz2 spack-6ccda813684b6ec42abe7294e9fc49b74426578a.tar.xz spack-6ccda813684b6ec42abe7294e9fc49b74426578a.zip |
log_parser.py: Find failed test case messages in error logs (#25694)
- Match failed autotest tests show the word "FAILED" near the end
- Match "FAIL: ", "FATAL: ", "failed ", "Failed test" of other suites
- autotest " ok"$ means the test passed, independend of text before.
- autoconf messages showing missing tools are fatal later, show them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/external/ctest_log_parser.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/spack/external/ctest_log_parser.py b/lib/spack/external/ctest_log_parser.py index 072c10d7a9..4e80a2b688 100644 --- a/lib/spack/external/ctest_log_parser.py +++ b/lib/spack/external/ctest_log_parser.py @@ -118,7 +118,11 @@ _error_matches = [ "([^:]+): (Error:|error|undefined reference|multiply defined)", "([^ :]+) ?: (error|fatal error|catastrophic error)", "([^:]+)\\(([^\\)]+)\\) ?: (error|fatal error|catastrophic error)"), - "^FAILED", + "^FAIL: ", + "^FATAL: ", + "^failed ", + "FAILED", + "Failed test", "^[Bb]us [Ee]rror", "^[Ss]egmentation [Vv]iolation", "^[Ss]egmentation [Ff]ault", @@ -154,6 +158,7 @@ _error_matches = [ "ld: 0706-006 Cannot find or open library file: -l ", "ild: \\(argument error\\) can't find library argument ::", "^could not be found and will not be loaded.", + "^WARNING: '.*' is missing on your system", "s:616 string too big", "make: Fatal error: ", "ld: 0711-993 Error occurred while writing to the output file:", @@ -177,6 +182,7 @@ _error_exceptions = [ ": warning", ": \\(Warning\\)", ": note", + " ok", "Note:", "makefile:", "Makefile:", |