summaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-03-07 23:36:28 -0800
committerVijay Bellur <vijay@gluster.com>2011-03-15 18:06:17 +0530
commitff62dce1d7171ba3c400f5e391a865ca53bf3904 (patch)
treecf5421b9634261b985192b1ff5463f7bd6246c6e /run.sh
parent7ed2ddd37ed29f800567f0cb23c8cd2eea35fdbe (diff)
changes for regression framework and functions for mounting
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index 44427e2..0801999 100755
--- a/run.sh
+++ b/run.sh
@@ -24,7 +24,11 @@ _init ()
exit;
}
- source ./init
+ [ $1 == "show" ] && {
+ ls $PWD/dvm | sort -n;
+ exit;
+ }
+
source ./regression_helpers
export GLUSTERD=$1
bug_id=;
@@ -32,6 +36,19 @@ _init ()
bug_id=$2;
fi
export EXPORT_DIR="/regression/export";
+ export glusterd_conf="/etc/glusterd";
+
+ export GLUSTERFSDIR=$(dirname $GLUSTERD);
+ export VERSION_STR=$($GLUSTERD --version) 2>&1 1>/dev/null
+ export VERSION=$(echo $VERSION_STR|cut -d " " -f 2)
+
+ if [ "$VERSION" == "" ]
+ then
+ echo "Unable to determine version of $GLUSTERD"
+ exit
+ fi
+
+ LOGDIR=$(dirname $GLUSTERFSDIR)/var/log/glusterfs;
}
main ()