Whamcloud - gitweb
LU-14 tests: add version check code to conf-sanity test 69 12/8412/2
authorJian Yu <jian.yu@intel.com>
Wed, 27 Nov 2013 12:54:05 +0000 (20:54 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 Dec 2013 13:04:10 +0000 (13:04 +0000)
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 <jian.yu@intel.com>
Change-Id: I43e12fda5c0c83848b96bd7f377b7b4514ed5d5e
Reviewed-on: http://review.whamcloud.com/8412
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/conf-sanity.sh

index 426b9ba..da625b0 100644 (file)
@@ -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