Skip to content

Commit 504c222

Browse files
committed
Revert "[build] Hotfix CTest regex for MODULE.bazel build output"
This reverts commit 0783097.
1 parent 033c5e1 commit 504c222

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

CTestCustom.cmake.in

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,23 @@ string(ASCII 27 ESC)
1313
# (i.e., [ without matching ]) and that element must be the last element of the
1414
# list.
1515

16-
# Never ever EVER _**EVER**_ should CTest fail the build of its own accord.
16+
# "DEBUG" emitted by Bazel may be colored yellow (CSI 33m), "WARNING" emitted
17+
# by Bazel may be colored magenta (CSI 35m), and "warning" emitted by Clang may
18+
# be colored magenta (CSI 35m) and bolded (CSI 1m).
1719
list(APPEND CTEST_CUSTOM_ERROR_EXCEPTION
18-
".*"
20+
"^DEBUG: "
21+
": DrakeDeprecationWarning: "
22+
": SyntaxWarning: invalid escape sequence "
23+
"^WARNING: "
24+
": warning: "
25+
":[0-9]+: Failure$"
26+
"(^${ESC}\\[33mDEBUG|^${ESC}\\[35mWARNING|: ${ESC}\\[0m${ESC}\\[0\;1\;35mwarning): ${ESC}\\[0m"
27+
)
28+
29+
# "ERROR" emitted by Bazel may be colored red (CSI 31m) and bolded (CSI 1m).
30+
list(APPEND CTEST_CUSTOM_ERROR_MATCH
31+
"^ERROR: "
32+
"^${ESC}\\[31m${ESC}\\[1mERROR: ${ESC}\\[0m"
1933
)
2034

2135
# Ignore various Mac CROSSTOOL-related warnings.

0 commit comments

Comments
 (0)