summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/ptest-runner
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2014-08-22 15:05:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 23:01:35 +0100
commitd6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1 (patch)
treeed7f28096de949238d5f628c7b05a6826c0562a4 /meta/recipes-support/ptest-runner
parentf4fcb237da0d1013005e9a0bb2381cfeb4c5316c (diff)
downloadopenembedded-core-d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1.tar.gz
openembedded-core-d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1.tar.bz2
openembedded-core-d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1.zip
ptest-runner: return 1 instead of zero if any test fails
It is better to know this information from the exit code rather than parsing test specific outputs. Signed-off-by: Laszlo Papp <lpapp@kde.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/ptest-runner')
-rw-r--r--meta/recipes-support/ptest-runner/files/ptest-runner8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner
index 33424134c5..c618f1148d 100644
--- a/meta/recipes-support/ptest-runner/files/ptest-runner
+++ b/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -1,5 +1,5 @@
#!/bin/sh
-
+ANYFAILED=no
echo "START: $0"
for libdir in /usr/lib*
@@ -15,9 +15,13 @@ do
date "+%Y-%m-%dT%H:%M"
echo "BEGIN: $x"
cd "$x"
- ./run-ptest
+ ./run-ptest || ANYFAILED=yes
echo "END: $x"
date "+%Y-%m-%dT%H:%M"
done
done
echo "STOP: $0"
+if [ "$ANYFAILED" = "yes" ]; then
+ exit 1
+fi
+exit 0