Whamcloud - gitweb
LU-5388 tests: add version check code into replay-dual test 24
[fs/lustre-release.git] / lustre / tests / replay-dual.sh
index e18467d..f7b1dda 100755 (executable)
@@ -860,6 +860,9 @@ test_23d () {
 run_test 23d "c1 rmdir d1, M0 drop update reply and fail M0/M1, c2 mkdir d1"
 
 test_24 () {
+       [[ $(lustre_version_code $SINGLEMDS) -gt $(version_code 2.5.2) ]] ||
+               { skip "Need MDS version newer than 2.5.2"; return 0; }
+
        touch $MOUNT/$tfile
        stat $MOUNT/$tfile >&/dev/null
 # OBD_FAIL_MDS_REINT_NET_REP
@@ -876,7 +879,7 @@ test_24 () {
 }
 run_test 24 "reconstruct on non-existing object"
 
-# end commit on sharing tests 
+# end commit on sharing tests
 
 complete $SECONDS
 SLEEP=$((`date +%s` - $NOW))