From 6ccda813684b6ec42abe7294e9fc49b74426578a Mon Sep 17 00:00:00 2001 From: bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> Date: Sun, 26 Sep 2021 10:35:04 +0200 Subject: 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. --- lib/spack/external/ctest_log_parser.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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:", -- cgit v1.2.3-60-g2f50