Skip to content

Commit f92ab61

Browse files
committed
ci: build: Fix error output in kernel parse
Sparse errors are piped in sterr, so capture them Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent f1a9a8d commit f92ab61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ compile_kernel_sparse() {
505505
echo "compile kernel with sparce (C=1)"
506506

507507
yes n 2>/dev/null | \
508-
make -j$(nproc) C=1 $EXTRA_FLAGS | \
508+
make -j$(nproc) C=1 $EXTRA_FLAGS 2>&1 | \
509509
(while IFS= read -r row; do
510510
if [[ "$row" =~ $regex ]]; then
511511
if [[ "$found" == "1" ]]; then
@@ -532,7 +532,7 @@ compile_kernel_sparse() {
532532
echo $row
533533
else
534534
found=1
535-
msg="::$type file=$file,line=$line,col=$col::$msg_"
535+
msg="::$type file=$file,line=$line,col=$col::sparse: $msg_"
536536
fi
537537

538538
else

0 commit comments

Comments
 (0)