diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-09-07 14:39:38 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-09-07 14:39:38 +0530 |
commit | 76d72094cf86764a17fbd1f8a668e203c64e4144 (patch) | |
tree | 411ac2fdcb4d1a3d6d60375b3ed3223865a1779d /dvm/2298/testcase | |
parent | 13e58112abba2bad7ba5cba0ddb2927f98f1b387 (diff) |
more testcases (2095, 2287, 2298, 2567, 2803) and some small changes to the framework
Diffstat (limited to 'dvm/2298/testcase')
-rwxr-xr-x | dvm/2298/testcase | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dvm/2298/testcase b/dvm/2298/testcase new file mode 100755 index 0000000..090e006 --- /dev/null +++ b/dvm/2298/testcase @@ -0,0 +1,27 @@ +#!/bin/bash + +function _init () +{ + source $cwd/regression_helpers; +} + +function remove_brick () +{ + $GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null; + + $GLUSTERFSDIR/gluster --mode=script volume remove-brick $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null; + + $GLUSTERFSDIR/gluster volume info | grep "export1" 2>/dev/null 1>/dev/null; + + ret=$?; + return $ret; +} + +function main () +{ + remove_brick; + op_ret=$?; + exit $op_ret; +} + +_init && main "$@" |