test/legacy-protocol.test: fix intermittent "Cannot read greeting from control socket"
[tinc] / test / invite-offline.test
index b435493..e515919 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
 
 # Initialize one node
 
@@ -9,14 +9,13 @@ init foo
 set DeviceType dummy
 set Mode switch
 set Broadcast no
-del Port
 set Address localhost
 set Port 32758
 EOF
 
 # Generate an invitation offline and let another node join the VPN
 
-invitation=`$tinc $c1 invite bar`
+invitation=`$tinc $c1 invite bar | tr -d '\r'`
 
 $tinc $c1 start $r1