From 936cf82d93e1e5204fe375f5c1f472ed7917b165 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Tue, 16 Sep 2014 14:00:03 -0400 Subject: tests: regression, can't run `prove $t` in subdirs In various tests we already use the pattern: . $(dirname $0)/../include.rc to locate various .rc files. Use the same pattern we already use to also find the new env.rc Change-Id: Ib7878c3f7f6491fcec401e9adbaa696ace392fae BUG: 1142420 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/8753 Tested-by: Gluster Build System Reviewed-by: Harshavardhana Tested-by: Harshavardhana Reviewed-by: Vijay Bellur --- tests/include.rc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/include.rc b/tests/include.rc index 9926c28e677..85d3ae3c5ac 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -11,7 +11,12 @@ DEBUG=${DEBUG:=0} # turn on debugging? 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" @@ -20,7 +25,7 @@ if [ ! -f ${PWD}/tests/env.rc ]; then echo exit 1 fi -. ${PWD}/tests/env.rc +. $ENV_RC PROCESS_UP_TIMEOUT=20 NFS_EXPORT_TIMEOUT=20 -- cgit