Skip to content

Commit fae70ba

Browse files
author
MarcoFalke
committed
ci: Better tidy errors
1 parent 264ca9d commit fae70ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/test/03_test_script.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ if [ "${RUN_TIDY}" = "true" ]; then
182182

183183
set -eo pipefail
184184
cd "${BASE_BUILD_DIR}/bitcoin-$HOST/src/"
185-
( run-clang-tidy-"${TIDY_LLVM_V}" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" ) | grep -C5 "error"
185+
if ! ( run-clang-tidy-"${TIDY_LLVM_V}" -quiet -load="/tidy-build/libbitcoin-tidy.so" "${MAKEJOBS}" | tee tmp.tidy-out.txt ); then
186+
grep -C5 "error: " tmp.tidy-out.txt
187+
echo "^^^ ⚠️ Failure generated from clang-tidy"
188+
false
189+
fi
186190
# Filter out files by regex here, because regex may not be
187191
# accepted in src/.bear-tidy-config
188192
# Filter out:

0 commit comments

Comments
 (0)