From: Wei Liu Date: Mon, 11 Dec 2017 21:22:18 +0000 (-0800) Subject: LU-10364 test: Add version check to test_255b X-Git-Tag: 2.10.4-RC1~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F32002%2F2;p=fs%2Flustre-release.git LU-10364 test: Add version check to test_255b Skip test if server version is older than 2.8.54 since it does not support ladvise. Lustre-change: https://review.whamcloud.com/30481 Lustre-commit: 043f5976d087a87bace840653c99e10cde13bb6d Change-Id: Ie613c1b8d9d082b78529a3d72fd59150431f65ea Test-Parameters: trivial Signed-off-by: Wei Liu Reviewed-by: James Nunez Reviewed-by: Saurabh Tandan Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/32002 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index f0d4ee8..4601f0d 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -14939,6 +14939,8 @@ facet_meminfo() { } test_255b() { + [ $(lustre_version_code ost1) -lt $(version_code 2.8.54) ] && + skip "lustre < 2.8.54 does not support ladvise " && return remote_ost_nodsh && skip "remote OST with nodsh" && return lfs setstripe -c 1 -i 0 $DIR/$tfile