summaryrefslogtreecommitdiffstats
path: root/tests/nfs.rc
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2014-11-26 11:27:53 +0100
committerNiels de Vos <ndevos@redhat.com>2014-11-27 06:19:21 -0800
commit9b51378d529378207f33a2d561793aca247f6523 (patch)
treedc4d59552d48fc5cfc2cfc93e10dc2c5f937d961 /tests/nfs.rc
parent8ae5046eb6c86840ccecefbade1695e68055de33 (diff)
tests: spurious failure fix for quota-anon-fd-nfs.t
Cherry picked from commit 463d3e379d63e37764bc190be6c2f790769bea58: > Change-Id: I4f7ee68c514d8d322e25cf74167f288a8b6f8164 > BUG: 1163543 > Signed-off-by: Atin Mukherjee <amukherj@redhat.com> > Reviewed-on: http://review.gluster.org/9108 > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Reviewed-by: Niels de Vos <ndevos@redhat.com> Also include the usage() function in the test, and some other improvements introduced with commit 27628b7b. BUG: 1168173 Change-Id: I4153af903178893361157af2ab06ce4989dd849b Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/9200 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'tests/nfs.rc')
-rw-r--r--tests/nfs.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/nfs.rc b/tests/nfs.rc
index e35b6852284..4b4a55e19e9 100644
--- a/tests/nfs.rc
+++ b/tests/nfs.rc
@@ -26,3 +26,9 @@ function mount_nfs ()
if [ ! -z "$opt" ]; then opt=",$opt"; fi
mount -t nfs -o soft,intr,vers=3"$opt" $e $m
}
+
+function umount_nfs ()
+{
+ umount -f $1
+ if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi
+}