Skip to content

Commit 6a77930

Browse files
committed
fix clang tidy check does not fail for failures
1 parent 11e32c6 commit 6a77930

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build-support/run_clang_tidy.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ done
3333
SCRIPT=$(which run-clang-tidy)
3434
set +e
3535
nproc
36-
if [[ $? == 0 ]]; then
37-
python3 $SCRIPT -p build -j$(nproc) $(cat files.txt)
36+
if [[ $? == 0]]; then
37+
NUM_THREADS=$(nproc)
3838
else
39-
python3 $SCRIPT -p build -j8 $(cat files.txt)
39+
NUM_THREADS=8
4040
fi
41+
set -e
42+
python3 $SCRIPT -p build -j$(nproc) $(cat files.txt)
4143
rm -f files.txt

0 commit comments

Comments
 (0)