From: James Simmons Date: Thu, 11 Dec 2014 15:13:14 +0000 (-0500) Subject: LU-5651 test: run replay-single test 93 only when supported. X-Git-Tag: 2.6.92~41 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=afde9f17260650d0cb80d53613fb5afda0a39384 LU-5651 test: run replay-single test 93 only when supported. 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 Reviewed-on: http://review.whamcloud.com/12942 Reviewed-by: Bob Glossman Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index b1c2ab3..bb88fc4 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -2819,6 +2819,12 @@ test_90() { # bug 19494 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