From: teddy Date: Sun, 9 Apr 2017 03:14:33 +0000 (+0800) Subject: LU-7529 test: fix tiny problems of tests in conf-sanity.sh X-Git-Tag: 2.9.56~23 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F17507%2F11;p=fs%2Flustre-release.git LU-7529 test: fix tiny problems of tests in conf-sanity.sh 1)test_68: Mount MGS in the end of test if MGS and MDS are seperated. 2)test_75: Reformat all devices otherwise 76a might fail. Change-Id: Iee8a5fa1c6acccbae86cdcbe14c8715a71b0ae2b Signed-off-by: Li Xi Signed-off-by: teddy Reviewed-on: https://review.whamcloud.com/17507 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Emoly Liu Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 2b70ab4..abf125c 100755 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -4734,6 +4734,10 @@ test_68() { umount_client $MOUNT || error "umount client failed" + if ! combined_mgs_mds; then + start_mgs || error "start mgs failed" + fi + start_mdt 1 || error "MDT start failed" start_ost || error "Unable to start OST1" @@ -5243,6 +5247,10 @@ test_75() { # LU-2374 add mds1 $opts_mds || error "add mds1 failed for new params" add ost1 $opts_ost || error "add ost1 failed for new params" + if ! combined_mgs_mds; then + stop_mgs || error "stop mgs failed" + fi + reformat return 0 } run_test 75 "The order of --index should be irrelevant" @@ -5250,6 +5258,10 @@ run_test 75 "The order of --index should be irrelevant" test_76a() { [[ $(lustre_version_code mgs) -ge $(version_code 2.4.52) ]] || { skip "Need MDS version at least 2.4.52" && return 0; } + + if ! combined_mgs_mds; then + start_mgs || error "start mgs failed" + fi setup local MDMB_PARAM="osc.*.max_dirty_mb" echo "Change MGS params"