Skip to content

Commit f8945ea

Browse files
committed
ci: Flush last warning captured
These steps works by printing the last warning when a new is matched, to support muli-line errors. Resolve last warning not being printed. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 54b3feb commit f8945ea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎ci/build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ check_coccicheck() {
196196
--include include/linux/compiler-version.h \
197197
--include include/linux/kconfig.h $file || true)
198198

199-
found=0
200199
msg=
201200

202201
while read -r row
@@ -470,6 +469,10 @@ compile_kernel() {
470469
fi
471470
done) ; err=${PIPESTATUS[1]}
472471

472+
if [[ $found == "1" ]]; then
473+
echo $msg >> $tmp_log_file
474+
fi
475+
473476
if [[ $err -ne 0 ]]; then
474477
while read -r line; do
475478
echo $line
@@ -541,6 +544,10 @@ compile_kernel_sparse() {
541544
fi
542545
done) ; err=${PIPESTATUS[1]}
543546

547+
if [[ $found == "1" ]]; then
548+
echo $msg
549+
fi
550+
544551
if [[ $err -ne 0 ]]; then
545552
fail=1
546553
fi

0 commit comments

Comments
 (0)