diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-03-07 23:36:28 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-03-15 18:06:17 +0530 |
commit | ff62dce1d7171ba3c400f5e391a865ca53bf3904 (patch) | |
tree | cf5421b9634261b985192b1ff5463f7bd6246c6e /run.sh | |
parent | 7ed2ddd37ed29f800567f0cb23c8cd2eea35fdbe (diff) |
changes for regression framework and functions for mounting
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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 () |