From 0783097836777a2b3906b4d08de2a3a5d740580a Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Wed, 8 Jan 2025 17:17:46 -0800 Subject: [PATCH] [build] Hotfix CTest regex for MODULE.bazel build output (#22430) --- CTestCustom.cmake.in | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index d8c6c7ced8d9..cf6945d91409 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -13,23 +13,9 @@ string(ASCII 27 ESC) # (i.e., [ without matching ]) and that element must be the last element of the # list. -# "DEBUG" emitted by Bazel may be colored yellow (CSI 33m), "WARNING" emitted -# by Bazel may be colored magenta (CSI 35m), and "warning" emitted by Clang may -# be colored magenta (CSI 35m) and bolded (CSI 1m). +# Never ever EVER _**EVER**_ should CTest fail the build of its own accord. list(APPEND CTEST_CUSTOM_ERROR_EXCEPTION - "^DEBUG: " - ": DrakeDeprecationWarning: " - ": SyntaxWarning: invalid escape sequence " - "^WARNING: " - ": warning: " - ":[0-9]+: Failure$" - "(^${ESC}\\[33mDEBUG|^${ESC}\\[35mWARNING|: ${ESC}\\[0m${ESC}\\[0\;1\;35mwarning): ${ESC}\\[0m" -) - -# "ERROR" emitted by Bazel may be colored red (CSI 31m) and bolded (CSI 1m). -list(APPEND CTEST_CUSTOM_ERROR_MATCH - "^ERROR: " - "^${ESC}\\[31m${ESC}\\[1mERROR: ${ESC}\\[0m" + ".*" ) # Ignore various Mac CROSSTOOL-related warnings.