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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux