[sheepdog] [PATCH stable-0.6 04/22] tests: add support for running check outside tests directory

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Aug 12 16:55:08 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/check | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/check b/tests/check
index 04e0113..5120d3f 100755
--- a/tests/check
+++ b/tests/check
@@ -34,6 +34,8 @@ timestamp=${TIMESTAMP:=false}
 # generic initialization
 iam=check
 
+cd $(readlink -f $(dirname $0))
+
 # we need common.config
 if ! . ./common.config
 then
-- 
1.8.1.2




More information about the sheepdog mailing list