diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2012-01-04 21:42:44 -0800 |
---|---|---|
committer | Gerrit Code Review <root@dev.gluster.com> | 2012-01-04 21:42:44 -0800 |
commit | d64ce0636ba4802e0c9adb8057eaa4068c5bba0b (patch) | |
tree | 9c3830b121e422fe36bb78c393504efdbd3fffee /dvm/2616 | |
parent | 6b24e7071e764a2032288578bcebeb90cdea5412 (diff) | |
parent | 29d4c33252465be3eafcf595ae038bd92fa9fef2 (diff) |
Merge "BUG:2616 -- validates the messages of profile stop/start"
Diffstat (limited to 'dvm/2616')
-rwxr-xr-x | dvm/2616/testcase | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dvm/2616/testcase b/dvm/2616/testcase new file mode 100755 index 0000000..a5f79b5 --- /dev/null +++ b/dvm/2616/testcase @@ -0,0 +1,17 @@ +#!/bin/bash + +source $cwd/regression_helpers + +$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null; + +$GLUSTERFSDIR/gluster volume profile $global_bug_id start | grep "Starting volume profile on $global_bug_id has been successful" 2>/dev/null 1>/dev/null; +temp=$?; + +$GLUSTERFSDIR/gluster volume profile $global_bug_id stop | grep "Stopping volume profile on $global_bug_id has been successful" 2>/dev/null 1>/dev/null; +temp1=$?; + +if [ $temp -eq 0 ] && [ $temp1 -eq 0 ]; then + exit 0; +else + exit 1; +fi |