testing: Fix expect-connection for tkm tests
authorTobias Brunner <tobias@strongswan.org>
Thu, 16 Jun 2016 12:35:26 +0000 (14:35 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Jun 2016 12:35:26 +0000 (14:35 +0200)
We don't use swanctl there but there is no load statement either.

testing/hosts/default/usr/local/bin/expect-connection

index 17e2b7f..ded9f79 100755 (executable)
@@ -17,7 +17,7 @@ secs=$2
 
 cmd="swanctl --list-conns"
 grep 'load.*stroke' /etc/strongswan.conf >/dev/null
-if [ $? -eq 0 ]; then
+if [ $? -eq 0 -o -n "$DAEMON_NAME" ]; then
        cmd="ipsec statusall"
 fi