diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-06-18 22:10:12 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-06-18 23:45:38 -0700 |
commit | 616b0aa44fe78a362f2dca3d066be47555ceb09f (patch) | |
tree | 9284ee8800cad92db27335a499f01ed7d145fea0 /tests/volume.rc | |
parent | f844e5019de872e0c138daa6257d1f6cac5a4aff (diff) |
tests: Provide force_umount with 5 retries
Change-Id: I2b5784c48eedcccb17690de438addd29075926bd
BUG: 1092850
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/8104
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 5b5c2147392..19be7ee4c92 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -382,3 +382,8 @@ function path_exists { stat $1 if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi } + +function force_umount { + umount -f $1 + if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi +} |