summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2013-01-29 10:56:22 +0200
committerTanu Kaskinen <tanuk@iki.fi>2013-02-06 14:15:09 +0200
commit3b3d26813f3e2091f42fa3e6a6f4b8cc04a913e9 (patch)
tree078b01a15703a8ce6b93cbaaf557f51077b6a983 /src/tests
parent3d81bdd04addc2d51eab4fc7daff9f98ea54811c (diff)
tests: Indicate failure in test-daemon.sh by returning 1 if any test fails.
Diffstat (limited to 'src/tests')
-rwxr-xr-xsrc/tests/test-daemon.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/test-daemon.sh b/src/tests/test-daemon.sh
index 264e16970..c1907a1e5 100755
--- a/src/tests/test-daemon.sh
+++ b/src/tests/test-daemon.sh
@@ -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