From ab37ffd3ad85280b39fc9c12e5fc64ed3d4fd4a9 Mon Sep 17 00:00:00 2001 From: Yang Sheng Date: Thu, 18 Sep 2014 12:11:18 -0400 Subject: [PATCH 1/1] LU-4416 tests: small fixes for conf_sanity --In util-linux 2.23.2, umount will call stat() on mountpoint. So have to use 'umount -f' in test_5a. Else the test will block forever. --Invoke cleanup_fs2 in test_24b. Signed-off-by: Yang Sheng Change-Id: Ie7540d6cfd6790417c63ea1efb50381cacc8345f Reviewed-on: http://review.whamcloud.com/10783 Reviewed-by: Bob Glossman Tested-by: Jenkins Reviewed-by: James Simmons Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/conf-sanity.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index c4d2136..edaf102 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -364,7 +364,7 @@ test_5a() { # was test_5 wait $UMOUNT_PID if grep " $MOUNT " /proc/mounts; then echo "test 5: /proc/mounts after failed umount" - umount $MOUNT & + umount -f $MOUNT & UMOUNT_PID=$! sleep 2 echo "killing umount" @@ -966,6 +966,7 @@ test_24b() { --reformat $fs2mdsdev $fs2mdsvdev || exit 10 setup start fs2mds $fs2mdsdev $MDS_MOUNT_OPTS && return 2 + stop fs2mds -f cleanup || return 6 } run_test 24b "Multiple MGSs on a single node (should return err)" -- 1.8.3.1