From 7759748915485d6c740a7fed831376f298eb90bb Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 1 May 2015 11:01:15 +0530 Subject: tests: Check aux umount is unmounted for quota tests Change-Id: If57d08f3446755ea41f66ca258efcc8ea5a89063 BUG: 1217701 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/10480 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/distribute/bug-1099890.t | 3 ++- tests/bugs/distribute/bug-1161156.t | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/bugs/distribute') diff --git a/tests/bugs/distribute/bug-1099890.t b/tests/bugs/distribute/bug-1099890.t index 4a4450166e9..f48162c972b 100644 --- a/tests/bugs/distribute/bug-1099890.t +++ b/tests/bugs/distribute/bug-1099890.t @@ -118,7 +118,8 @@ EXPECT "$V0-client-1" dht_get_linkto_target "$B0/${V0}1/zz" EXPECT "1" is_dht_linkfile "$B0/${V0}1/zz" force_umount $M0 -$CLI volume stop $V0 +TEST $CLI volume stop $V0 +EXPECT "1" get_aux UMOUNT_LOOP ${B0}/${V0}{1,2} rm -f ${B0}/brick{1,2} diff --git a/tests/bugs/distribute/bug-1161156.t b/tests/bugs/distribute/bug-1161156.t index 33d1571c59d..cc9522dc1a8 100755 --- a/tests/bugs/distribute/bug-1161156.t +++ b/tests/bugs/distribute/bug-1161156.t @@ -1,6 +1,7 @@ #!/bin/bash . $(dirname $0)/../../include.rc +. $(dirname $0)/../../volume.rc . $(dirname $0)/../../nfs.rc function usage() @@ -49,6 +50,7 @@ TEST mv $N0/dir/file $N0/dir/newfile_3 # rename should fail here with disk quota exceeded TEST ! mv $N0/dir/newfile_3 $N0/newdir/ -# cleanup umount_nfs $N0 +TEST $CLI volume stop $V0 +EXPECT "1" get_aux cleanup; -- cgit