diff --git a/test/test-setup b/test/test-setup index 03b1a3be3..61a3b9ca3 100755 --- a/test/test-setup +++ b/test/test-setup @@ -61,7 +61,8 @@ while true; do echo "$$" > $PIDFILE break else - pid=$(< $PIDFILE ) || die "Couldn't read pidfile '$PIDFILE'" + pid=$(< $PIDFILE ) + [ "$pid" ] || die "Couldn't read pidfile '$PIDFILE'" if kill -0 $pid; then echo "Pidfile for process $pid exists, and process is running. Sleeping." sleep 10