summaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index 0801999..ddce608 100755
--- a/run.sh
+++ b/run.sh
@@ -29,8 +29,10 @@ _init ()
exit;
}
- source ./regression_helpers
+ export cwd=$(dirname $0);
+ source $cwd/regression_helpers
export GLUSTERD=$1
+
bug_id=;
if [ $# -eq 2 ]; then
bug_id=$2;
@@ -39,6 +41,7 @@ _init ()
export glusterd_conf="/etc/glusterd";
export GLUSTERFSDIR=$(dirname $GLUSTERD);
+ export GLUSTERDIR=$(dirname $GLUSTERFSDIR);
export VERSION_STR=$($GLUSTERD --version) 2>&1 1>/dev/null
export VERSION=$(echo $VERSION_STR|cut -d " " -f 2)