Whamcloud - gitweb
LU-10435 tests: add version check to conf-sanity test 32e 66/30766/2
authorJian Yu <jian.yu@intel.com>
Mon, 8 Jan 2018 05:25:42 +0000 (21:25 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 Jan 2018 06:19:45 +0000 (06:19 +0000)
This patch adds Lustre version check codes into conf-sanity
test 32e to make the test interoperate with servers that do
not support the DOM feature.

Test-Parameters: trivial envdefinitions=ONLY=32e \
mdsjob=lustre-b2_10 ossjob=lustre-b2_10 serverbuildno=52 \
testlist=conf-sanity

Change-Id: I6a561d2972dfc1071c0722af5cb265de0423626c
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/30766
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh

index 441c1e8..09f907a 100644 (file)
@@ -2419,6 +2419,9 @@ test_32d() {
 run_test 32d "convert ff test"
 
 test_32e() {
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.10.56) ]] ||
+               { skip "Need MDS version at least 2.10.56"; return 0; }
+
        local tarballs
        local tarball
        local rc=0