Whamcloud - gitweb
LU-5132 tests: Add version check to sanity/160c 57/10557/4
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 4 Jun 2014 06:10:24 +0000 (14:10 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Jun 2014 22:10:48 +0000 (22:10 +0000)
Account for what versions of Lustre this test should work for.
This test was added in http://review.whamcloud.com/9723 and that
was included in 2.5.58 and prior to 2.5.2 in the b2_5 branch.

Test-Parameters: alwaysuploadlogs envdefinitions=ONLY=160c \
ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=42 mdsbuildno=42 \
testlist=sanity

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I12a8fbfe1ba09b97e0346f148884d5355eb704e4
Reviewed-on: http://review.whamcloud.com/10557
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index bc2698c..74f0a69 100644 (file)
@@ -10057,6 +10057,12 @@ run_test 160b "Verify that very long rename doesn't crash in changelog"
 
 test_160c() {
        local rc=0
 
 test_160c() {
        local rc=0
+       local server_version=$(lustre_version_code $SINGLEMDS)
+
+       [[ $server_version -gt $(version_code 2.5.57) ]] ||
+               [[ $server_version -gt $(version_code 2.5.1) &&
+                  $server_version -lt $(version_code 2.5.50) ]] ||
+               { skip "Need MDS version at least 2.5.58 or 2.5.2+"; return; }
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return
 
        # Registration step
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return
 
        # Registration step