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.59~134 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=043f5976d087a87bace840653c99e10cde13bb6d;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. Change-Id: Ie613c1b8d9d082b78529a3d72fd59150431f65ea Test-Parameters: trivial Signed-off-by: Wei Liu Reviewed-on: https://review.whamcloud.com/30481 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Saurabh Tandan Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index d8fde97..2a816d6 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -15551,6 +15551,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