From: Jian Yu Date: Thu, 21 Aug 2014 05:46:41 +0000 (-0700) Subject: LU-5388 tests: add version check code into replay-dual test 24 X-Git-Tag: 2.5.3~3 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F11539%2F2;p=fs%2Flustre-release.git LU-5388 tests: add version check code into replay-dual test 24 This patch adds Lustre version check code into replay-dual test 24 to make the test interoperate with servers that do not have change of http://review.whamcloud.com/11025 . Test-Parameters: alwaysuploadlogs \ envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=24 \ ossjob=lustre-b2_4 mdsjob=lustre-b2_4 ossbuildno=73 mdsbuildno=73 \ testlist=replay-dual Signed-off-by: Jian Yu Change-Id: Id4bf872ee4e2d478c2b6cc809711692084e990fd Reviewed-on: http://review.whamcloud.com/11539 Tested-by: Jenkins Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh index e18467d..f7b1dda 100755 --- a/lustre/tests/replay-dual.sh +++ b/lustre/tests/replay-dual.sh @@ -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))