Whamcloud - gitweb
LU-7040 test: skip sanity-hsm 12q for old MDSs 83/16683/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 30 Sep 2015 14:52:48 +0000 (09:52 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 29 Oct 2015 06:36:36 +0000 (06:36 +0000)
Before 2.7.58 MDSs do not set OBD_MD_TSTATE in some of the cases that
they should. So skip sanity-hsm test_12q when running against these
servers.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I2ebe1b24e28bd4a0f5c03eace1c74678c7442c5f
Reviewed-on: http://review.whamcloud.com/16683
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity-hsm.sh

index 0126b78..bc5853c 100755 (executable)
@@ -1431,6 +1431,8 @@ cleanup_test_12q() {
 }
 
 test_12q() {
+       [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.58) ] &&
+               skip "need MDS version at least 2.7.58" && return 0
 
        zconf_mount $(facet_host $SINGLEAGT) $MOUNT3 ||
                error "cannot mount $MOUNT3 on $SINGLEAGT"