Browse Source

Export variables so that they are accessible by exit function

Joseph Henry 2 years ago
parent
commit
a6d5c452d5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/validate-linux.sh

+ 4 - 4
.github/workflows/validate-linux.sh

@@ -32,12 +32,12 @@ test() {
 
 	echo -e "\nRunning test for $RUN_LENGTH seconds"
 
-	NS1="ip netns exec ns1"
-	NS2="ip netns exec ns2"
+	export NS1="ip netns exec ns1"
+	export NS2="ip netns exec ns2"
 
-	ZT1="$NS1 ./zerotier-cli -p9996 -D$(pwd)/node1"
+	export ZT1="$NS1 ./zerotier-cli -p9996 -D$(pwd)/node1"
 	# Specify custom port on one node to ensure that feature works
-	ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2"
+	export ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2"
 
 	echo -e "\nSetting up network namespaces..."
 	echo "Setting up ns1"