Skip to content

Commit

Permalink
[build] Hotfix CTest regex for MODULE.bazel build output (#22430)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Jan 9, 2025
1 parent 9a01ca3 commit 0783097
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions CTestCustom.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0783097

Please sign in to comment.