From a6312f2ae97a4276266b75651934df480d83852d Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 23 Dec 2022 10:31:14 +0100 Subject: [PATCH] testing: Abort kernel build if patch can't be applied --- testing/scripts/build-guestkernel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testing/scripts/build-guestkernel b/testing/scripts/build-guestkernel index f7ffdab58f..9114e50dd7 100755 --- a/testing/scripts/build-guestkernel +++ b/testing/scripts/build-guestkernel @@ -37,8 +37,9 @@ then then log_action "Applying kernel patch" bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1 - log_status $? - [ $? -eq 0 ] || exit 1 + status=$? + log_status $status + [ $status -eq 0 ] || exit 1 fi fi cd $KERNELDIR -- 2.47.2