X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Finvite-offline.test;h=82f7cb98dd02c199d461cd1a399411685fbe0f15;hb=44f3023;hp=8e027daad0927825debed84c3373b1edc46abf28;hpb=fd3ec60757a84b7551e03b3a48dd30f35015c448;p=tinc diff --git a/test/invite-offline.test b/test/invite-offline.test index 8e027daa..82f7cb98 100755 --- a/test/invite-offline.test +++ b/test/invite-offline.test @@ -1,6 +1,6 @@ #!/bin/sh -. ./testlib.sh +. "${0%/*}/testlib.sh" # Initialize one node @@ -9,16 +9,15 @@ 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 | sed 's/\r//'` -$tinc $c1 start +$tinc $c1 start $r1 $tinc $c2 join $invitation