From 2a12a99cff7a6d5bb61089d6478676acee8f482d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 13 May 2011 10:40:40 +0000 Subject: [PATCH] scripts/run-regression-tests: echo "FAILED" if compilation failed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3453 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/run-regression-tests | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/run-regression-tests b/scripts/run-regression-tests index 5e3c4236a..8e067e8b3 100755 --- a/scripts/run-regression-tests +++ b/scripts/run-regression-tests @@ -414,15 +414,18 @@ function compile_kernel { local subdir="$2" echo "Compiling the patched kernel ..." - ( - cd "${outputdir}/linux-$1" \ - && make -s prepare \ - && make -s scripts \ - && LC_ALL=C make -k M="${subdir}" - ) &> "${outputfile}" - local errors=$(grep -c ' error:' "${outputfile}") - local warnings=$(grep -c ' warning:' "${outputfile}") - echo "${errors} errors / ${warnings} warnings." + if (cd "${outputdir}/linux-$1" \ + && make -s prepare \ + && make -s scripts \ + && LC_ALL=C make -k M="${subdir}" + ) &> "${outputfile}" + then + local errors=$(grep -c ' error:' "${outputfile}") + local warnings=$(grep -c ' warning:' "${outputfile}") + echo "${errors} errors / ${warnings} warnings." + else + echo FAILED + fi cat "${outputfile}" | grep -E 'warning:|error:' | sort | uniq -c return 0 }