[PATCH ocserv 4/5] Fix path to common.sh when tests run from another directory

Mike Miller mtmiller at ieee.org
Sun Jul 21 00:16:09 EDT 2013


---
 tests/test-pass      | 2 +-
 tests/test-pass-cert | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-pass b/tests/test-pass
index d305ab5..14f14a9 100755
--- a/tests/test-pass
+++ b/tests/test-pass
@@ -20,7 +20,7 @@
 
 SERV="${SERV:-../src/ocserv}"
 
-. ./common.sh
+. `dirname $0`/common.sh
 
 echo "Testing local backend with username-password..."
 
diff --git a/tests/test-pass-cert b/tests/test-pass-cert
index 2e4b3f6..152019d 100755
--- a/tests/test-pass-cert
+++ b/tests/test-pass-cert
@@ -20,7 +20,7 @@
 
 SERV="${SERV:-../src/ocserv}"
 
-. ./common.sh
+. `dirname $0`/common.sh
 
 echo "Testing local backend with username-password and certificate..."
 
-- 
1.8.3.2



More information about the openconnect-devel mailing list