testing: Fix expect-connection for tkm tests
[strongswan.git] / 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