summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 7b490ea839e..bcaafb90f66 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -9,7 +9,12 @@ B0=${B0:=/d/backends}; # top level of brick directories
CC=cc
OSTYPE=$(uname -s)
-if [ ! -f ${PWD}/tests/env.rc ]; then
+ENV_RC=$(dirname $0)/../env.rc
+if [ ! -f $ENV_RC ]; then
+ ENV_RC=$(dirname $0)/../../env.rc
+fi
+
+if [ ! -f $ENV_RC ]; then
echo "Aborting."
echo
echo "env.rc not found"
@@ -18,7 +23,7 @@ if [ ! -f ${PWD}/tests/env.rc ]; then
echo
exit 1
fi
-. ${PWD}/tests/env.rc
+. $ENV_RC
H0=${H0:=`hostname`}; # hostname
MOUNT_TYPE_FUSE="fuse.glusterfs"