mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
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>
This commit is contained in:
parent
fd0aa6af62
commit
7361876845
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user