From: Emoly Liu Date: Fri, 6 Jun 2014 14:45:00 +0000 (+0800) Subject: LU-5142 test: add version check to conf-sainty.sh test_43 X-Git-Tag: 2.6.0-RC1~93 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=25374e3b35f5776a9fd6e5b4cac273f7000511e9 LU-5142 test: add version check to conf-sainty.sh test_43 This patch adds Lustre version check codes into conf-sanity test_43 to make the test work with servers which do not have the following patches: Lustre-commit: 3064318df90ce7019b83c8a7f80e93a9634c00fa Lustre-change: http://review.whamcloud.com/5700 Lustre-commit: 917b0a17d4e50db9f966763925a2dc860d932a3b Lustre-change: http://review.whamcloud.com/9221 Test-Parameters: envdefinitions=SLOW=yes,ONLY=43 testlist=conf-sanity ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=61 mdsbuildno=61 Signed-off-by: Emoly Liu Change-Id: I9fad8d7002eb29b3da89213a6afc3c88de611b8f Reviewed-on: http://review.whamcloud.com/10675 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 3862b8f..6446ac6 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -2577,6 +2577,8 @@ test_42() { #bug 14693 run_test 42 "allow client/server mount/unmount with invalid config param" test_43() { + [[ $(lustre_version_code mgs) -ge $(version_code 2.5.58) ]] || + { skip "Need MDS version at least 2.5.58" && return 0; } [ $UID -ne 0 -o $RUNAS_ID -eq 0 ] && skip_env "run as root" ID1=${ID1:-501}