From e4e106058f8dcacbe6ae2905cf5e16d4c6f0858c Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 11 Dec 2017 13:22:18 -0800 Subject: [PATCH] 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 --- lustre/tests/sanity.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.8.3.1