diff options
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 "$@" |