Improve invite-join.test reliability on Alpine Linux.
[tinc] / test / invite-join.test
index 892767c..7915581 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/sh
 
-# shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node
 
@@ -18,7 +17,8 @@ start_tinc foo
 
 echo [STEP] Generate an invitation and let another node join the VPN
 
-tinc foo invite bar | tinc bar join
+invitation=$(tinc foo invite bar)
+tinc bar join "$invitation"
 
 echo [STEP] Test equivalence of host config files