Whamcloud - gitweb
LU-6256 test: Skip sanity test_184e if MDS version older than 2.6.94
authorWei Liu <wei3.liu@intel.com>
Mon, 23 Feb 2015 21:19:05 +0000 (13:19 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 27 Feb 2015 19:01:19 +0000 (14:01 -0500)
Skip sanity test_184e if MDS version older than 2.6.94

Change-Id: Ib491b079a3adc998a12d9bbcb7985ad2e718453b
Signed-off-by: Wei Liu <wei3.liu@intel.com>
Reviewed-on: http://review.whamcloud.com/13845
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index 26eeb26..573844b 100644 (file)
@@ -11180,6 +11180,8 @@ test_184d() {
 run_test 184d "allow stripeless layouts swap"
 
 test_184e() {
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.6.94) ]] ||
+               { skip "Need MDS version at least 2.6.94"; return 0; }
        check_swap_layouts_support && return 0
        [ -z "$(which getfattr 2>/dev/null)" ] &&
                skip "no getfattr command" && return 0