diff options
| author | Laszlo Papp <lpapp@kde.org> | 2014-08-22 15:05:03 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 23:01:59 +0100 |
| commit | 73618768454a633c9966dff93611bf5693df0d99 (patch) | |
| tree | 520500cda96be453fe5f13ad4b535c932670a80b /meta/recipes-support/ptest-runner | |
| parent | fd0aa6af628247d41fc61ba84be748f2f4fc2a72 (diff) | |
| download | poky-73618768454a633c9966dff93611bf5693df0d99.tar.gz | |
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.
(From OE-Core rev: d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1)
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-runner | 8 |
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 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ANYFAILED=no | |
| 3 | echo "START: $0" | 3 | echo "START: $0" |
| 4 | 4 | ||
| 5 | for libdir in /usr/lib* | 5 | for libdir in /usr/lib* |
| @@ -15,9 +15,13 @@ do | |||
| 15 | date "+%Y-%m-%dT%H:%M" | 15 | date "+%Y-%m-%dT%H:%M" |
| 16 | echo "BEGIN: $x" | 16 | echo "BEGIN: $x" |
| 17 | cd "$x" | 17 | cd "$x" |
| 18 | ./run-ptest | 18 | ./run-ptest || ANYFAILED=yes |
| 19 | echo "END: $x" | 19 | echo "END: $x" |
| 20 | date "+%Y-%m-%dT%H:%M" | 20 | date "+%Y-%m-%dT%H:%M" |
| 21 | done | 21 | done |
| 22 | done | 22 | done |
| 23 | echo "STOP: $0" | 23 | echo "STOP: $0" |
| 24 | if [ "$ANYFAILED" = "yes" ]; then | ||
| 25 | exit 1 | ||
| 26 | fi | ||
| 27 | exit 0 | ||
