X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fparam-build.sh;h=00debb7b6369e13ecc294f103eb6b6b201f09f41;hb=0f71a764e2e0eb8d3916f8ea711ef552dcf557bb;hp=18c165f678b240fa2732e74a8d9148113adbb0e6;hpb=c45b04df52b71069d2a2820dfacf5ca32291250b;p=lttng-ci.git diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 18c165f..00debb7 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -384,11 +384,12 @@ build_modules() { # Build modules KERNELDIR="${kdir}" make -j"${NPROC}" V=1 CC="$CC" + ret=$? set -e # We expect this build to fail, if it doesn't, fail the job. - if [ "$?" -eq 0 ]; then + if [ "$ret" -eq 0 ]; then echo "This build should have failed." exit 1 fi @@ -396,8 +397,6 @@ build_modules() { # We have to publish at least one file or the build will fail echo "This kernel is broken, there is a deadlock in the timekeeping subsystem." > "${outdir}/BROKEN.txt.ko" - set -e - KERNELDIR="${kdir}" make clean else # Regular build