aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2015-10-30 08:41:35 +0900
committerAKASHI Takahiro <takahiro.akashi@linaro.org>2015-10-30 16:25:58 +0900
commitc253b270519992303fe0d1c4c8447cae7ca743dc (patch)
treea48c221d80c8d81f5b97d97102b78285974064e7
parente4cc87da728848c60c3f4a0d9572be91a4a2d56c (diff)
downloadkbuildtest-c253b270519992303fe0d1c4c8447cae7ca743dc.tar.gz
add a check for whether kbuild complained about any warnings
If we have got a "note:" or "warning:" message, the build test itself is marked as PASS, but with a small note. For example, $ kbuildtest.sh -v HEAD^ ... results: ... ca1e96d/9 PASS warning
-rwxr-xr-xkbuildtest.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/kbuildtest.sh b/kbuildtest.sh
index a45d8c1..d5a272a 100755
--- a/kbuildtest.sh
+++ b/kbuildtest.sh
@@ -327,7 +327,13 @@ function run_build_test {
make O=${BUILDDIR} ${OFLAGS} > ${LOGDIR}/$p/$c/build.log 2>&1
if [ $? -eq 0 ]
then
- echo $p/$c PASS
+ if [ $(cat ${LOGDIR}/$p/$c/build.log | \
+ grep -E "(note:|warning:)" | wc -l) -ne 0 ]
+ then
+ echo $p/$c PASS warning
+ else
+ echo $p/$c PASS
+ if
else
echo $p/$c FAIL
fi >> ${LOGDIR}/results