Skip to content

Commit fa6986a

Browse files
author
MarcoFalke
committed
ci: Print iwyu patch in git diff format
1 parent e1bf547 commit fa6986a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/test/06_script_b.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ if [ "${RUN_TIDY}" = "true" ]; then
7575
" src/util/syserror.cpp"\
7676
" src/util/threadinterrupt.cpp"\
7777
" src/zmq"\
78-
" -p . ${MAKEJOBS} -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=${BASE_BUILD_DIR}/bitcoin-$HOST/contrib/devtools/iwyu/bitcoin.core.imp"
78+
" -p . ${MAKEJOBS}"\
79+
" -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=${BASE_BUILD_DIR}/bitcoin-$HOST/contrib/devtools/iwyu/bitcoin.core.imp"\
80+
" |& tee /tmp/iwyu_ci.out"
81+
export P_CI_DIR="${BASE_ROOT_DIR}/src"
82+
CI_EXEC "python3 ${DIR_IWYU}/include-what-you-use/fix_includes.py --nosafe_headers < /tmp/iwyu_ci.out"
83+
CI_EXEC "git --no-pager diff"
7984
fi
8085

8186
if [ "$RUN_SECURITY_TESTS" = "true" ]; then

0 commit comments

Comments
 (0)