From 69398a9d7e10496cf227197519cdb661ee9cec64 Mon Sep 17 00:00:00 2001 From: Marc CARRE Date: Wed, 1 Feb 2017 15:38:39 +0000 Subject: [PATCH] Source config.sh using relative path to the script, regardless of current directory. Sourcing failed when running make integration-tests. --- test/111_fastdp_encryption_2_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/111_fastdp_encryption_2_test.sh b/test/111_fastdp_encryption_2_test.sh index 7059d065..19baf308 100755 --- a/test/111_fastdp_encryption_2_test.sh +++ b/test/111_fastdp_encryption_2_test.sh @@ -3,7 +3,7 @@ # TODO(mp) 1. test anti-replay 2. test sleeve <-> fastdp # TODO(mp) test with --trusted-subnets -. ./config.sh +. "$(dirname "$0")/config.sh" HOST1_IP=$($SSH $HOST1 getent ahosts $HOST1 | grep "RAW" | cut -d' ' -f1) HOST2_IP=$($SSH $HOST2 getent ahosts $HOST2 | grep "RAW" | cut -d' ' -f1)