]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest-runner: return 1 instead of zero if any test fails
authorLaszlo Papp <lpapp@kde.org>
Fri, 22 Aug 2014 14:05:03 +0000 (15:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:35 +0000 (23:01 +0100)
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>
meta/recipes-support/ptest-runner/files/ptest-runner

index 33424134c5e1f480e4ac693fa4f20ddbe584135c..c618f1148db3f44898c00f0ef0210696d7f9cf30 100644 (file)
@@ -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