Whamcloud - gitweb
LU-5606 tests: add version check codes to conf-sanity test 41c 76/12376/2
authorJian Yu <jian.yu@intel.com>
Wed, 22 Oct 2014 06:39:09 +0000 (23:39 -0700)
committerAndreas Dilger <andreas.dilger@intel.com>
Mon, 27 Oct 2014 21:30:24 +0000 (21:30 +0000)
This patch adds Lustre version check codes into conf-sanity test
41c to make the test interoperate with servers that do not have
commit 166c5ba95cb2a4771317e030a3649e4480c8cbad.

Test-Parameters: alwaysuploadlogs envdefinitions=ONLY=41c \
ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=86 mdsbuildno=86 \
testlist=conf-sanity

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Ifa02e9ef1a137257790a399d75cce1f703fb0d6b
Reviewed-on: http://review.whamcloud.com/12376
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/conf-sanity.sh

index 101ffee..1cd8c21 100644 (file)
@@ -2562,6 +2562,15 @@ test_41b() {
 run_test 41b "mount mds with --nosvc and --nomgs on first mount"
 
 test_41c() {
+       local server_version=$(lustre_version_code $SINGLEMDS)
+
+       [[ $server_version -ge $(version_code 2.6.52) ]] ||
+       [[ $server_version -ge $(version_code 2.5.26) &&
+          $server_version -lt $(version_code 2.5.50) ]] ||
+       [[ $server_version -ge $(version_code 2.5.4) &&
+          $server_version -lt $(version_code 2.5.11) ]] ||
+               { skip "Need MDS version 2.5.4+ or 2.5.26+ or 2.6.52+"; return; }
+
        cleanup
        # MDT concurent start
        #define OBD_FAIL_TGT_DELAY_CONNECT 0x703