diff options
-rw-r--r-- | tests/include.rc | 9 |
1 files 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 |