test suite: Fail test if para_server could not be started.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Jun 2016 13:13:30 +0000 (15:13 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Jul 2016 11:37:30 +0000 (13:37 +0200)
In t0004-server.sh, we start the server in daemon mode without checking
the exit code. If it fails to start, there is no point in trying to
run the tests of this file.

This commit adds the missing check.

t/t0004-server.sh

index 3cb37d4260cf21fb3ec83109642642cf67bc1f52..c2e809cb6da569d05177bd3552ece039047a96e7 100755 (executable)
@@ -108,6 +108,7 @@ EOF
                --user-list "$user_list" \
                --http-port "$stream_port" \
                --dccp-port "$stream_port"
+       (($? != 0)) && exit 1
 fi
 
 for ((i=0; i < ${#commands[@]}; i++)); do