Whamcloud - gitweb
LU-10364 test: Add version check to test_255b 02/32002/2
authorWei Liu <wei3.liu@intel.com>
Mon, 11 Dec 2017 21:22:18 +0000 (13:22 -0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 3 May 2018 19:59:19 +0000 (19:59 +0000)
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 <wei3.liu@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32002
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/tests/sanity.sh

index f0d4ee8..4601f0d 100755 (executable)
@@ -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