Whamcloud - gitweb
LU-5651 test: run replay-single test 93 only when supported. 42/12942/5
authorJames Simmons <uja.ornl@gmail.com>
Thu, 11 Dec 2014 15:13:14 +0000 (10:13 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 18 Dec 2014 03:13:59 +0000 (03:13 +0000)
The new test for replay-single will only work for lustre
versions that contain commit f61cec84. This patch does
lustre version checking to over failing on platforms that
are not fixed.

Change-Id: I0feffb4b3c131db68c115a111bc87a229bda23e3
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Reviewed-on: http://review.whamcloud.com/12942
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/replay-single.sh

index b1c2ab3..bb88fc4 100755 (executable)
@@ -2819,6 +2819,12 @@ test_90() { # bug 19494
 run_test 90 "lfs find identifies the missing striped file segments"
 
 test_93() {
 run_test 90 "lfs find identifies the missing striped file segments"
 
 test_93() {
+    local server_version=$(lustre_version_code $SINGLEMDS)
+       [[ $server_version -ge $(version_code 2.6.90) ]] ||
+       [[ $server_version -ge $(version_code 2.5.4) &&
+          $server_version -lt $(version_code 2.5.50) ]] ||
+               { skip "Need MDS version 2.5.4+ or 2.6.90+"; return; }
+
     cancel_lru_locks osc
 
     $SETSTRIPE -i 0 -c 1 $DIR/$tfile
     cancel_lru_locks osc
 
     $SETSTRIPE -i 0 -c 1 $DIR/$tfile