Whamcloud - gitweb
LU-8547 test: Skip ost-pools test_24 for older MDS version 33/22533/6
authorSaurabh Tandan <saurabh.tandan@intel.com>
Thu, 15 Sep 2016 19:24:38 +0000 (12:24 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 26 Sep 2016 15:20:27 +0000 (15:20 +0000)
Skipping ost-pools test_24 if server version is less than 2.8.56

Test-Parameters: trivial testlist=ost-pools,ost-pools,ost-pools,ost-pools
Signed-off-by: Saurabh Tandan <saurabh.tandan@intel.com>
Change-Id: Id93490606c50a0528d4576f64c808e11255ff01d
Reviewed-on: http://review.whamcloud.com/22533
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/ost-pools.sh

index 104268c..307c4fa 100755 (executable)
@@ -26,7 +26,7 @@ init_logging
 
 check_and_setup_lustre
 
 
 check_and_setup_lustre
 
-#                                  9  12.5  (min)"
+#                                  9  12.5 (min)"
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="18 23b"
 
 DIR=${DIR:-$MOUNT}
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="18 23b"
 
 DIR=${DIR:-$MOUNT}
@@ -1414,9 +1414,13 @@ test_23b() {
 run_test 23b "OST pools and OOS"
 
 test_24() {
 run_test 23b "OST pools and OOS"
 
 test_24() {
-    set_cleanup_trap
-    local POOL_ROOT=${POOL_ROOT:-$DIR/$tdir}
-    [[ $OSTCOUNT -le 1 ]] && skip_env "Need at least 2 OSTs" && return
+       set_cleanup_trap
+       local POOL_ROOT=${POOL_ROOT:-$DIR/$tdir}
+       [[ $OSTCOUNT -le 1 ]] && skip_env "Need at least 2 OSTs" && return
+
+       local server_version=$(lustre_version_code $SINGLEMDS)
+               [[ $server_version -ge $(version_code 2.8.56) ]] ||
+               { skip "Need server version newer than 2.8.55"; return 0; }
 
     local numfiles=10
     local i=0
 
     local numfiles=10
     local i=0