From 0e0208e217ca2226e5041fbdbbbfb0216af7877e Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Wed, 27 Nov 2013 20:54:05 +0800 Subject: [PATCH] LU-14 tests: add version check code to conf-sanity test 69 This patch adds Lustre version check codes into conf-sanity test 69 to make the test work with servers which do not have the following patch: Lustre-commit: db6613f5bed1606cc8f97b46d1b298746af03a75 Lustre-change: http://review.whamcloud.com/7443 Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=69 \ ossjob=lustre-b2_3 mdsjob=lustre-b2_3 ossbuildno=41 mdsbuildno=41 \ testlist=conf-sanity Signed-off-by: Jian Yu Change-Id: I43e12fda5c0c83848b96bd7f377b7b4514ed5d5e Reviewed-on: http://review.whamcloud.com/8412 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Andreas Dilger --- lustre/tests/conf-sanity.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 426b9ba..da625b0 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -3776,6 +3776,15 @@ test_67() { #LU-2950 run_test 67 "test routes conversion and configuration" test_69() { + local server_version=$(lustre_version_code $SINGLEMDS) + + [[ $server_version -lt $(version_code 2.4.2) ]] && + skip "Need MDS version at least 2.4.2" && return + + [[ $server_version -ge $(version_code 2.4.50) ]] && + [[ $server_version -lt $(version_code 2.5.0) ]] && + skip "Need MDS version at least 2.5.0" && return + setup # use OST0000 since it probably has the most creations -- 1.8.3.1