mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
tests: Indicate failure in test-daemon.sh by returning 1 if any test fails.
This commit is contained in:
parent
3d81bdd04a
commit
3b3d26813f
1 changed files with 4 additions and 2 deletions
|
|
@ -52,8 +52,10 @@ sleep 5
|
|||
|
||||
unset DISPLAY
|
||||
|
||||
EXIT_CODE=0
|
||||
|
||||
for ONE_TEST in $@; do
|
||||
${ONE_TEST}
|
||||
${ONE_TEST} || EXIT_CODE=1
|
||||
done
|
||||
|
||||
# terminate the designated pulseaudio daemon
|
||||
|
|
@ -68,4 +70,4 @@ sleep 2
|
|||
## be sure it really died
|
||||
kill -9 $DBUS_SESSION_BUS_PID > /dev/null 2>&1 || true
|
||||
|
||||
exit 0
|
||||
exit $EXIT_CODE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue