From 0a567ae4f3b0a4152bb8428244f7c2993584364e Mon Sep 17 00:00:00 2001 From: James Nunez Date: Tue, 15 Jan 2019 09:08:17 -0700 Subject: [PATCH] LU-11777 tests: add version check sanityn 102 sanityn test 102 was added to Lustre tag 2.11.57. Thus, we need to check that the server is 2.11.57 or later before running test 102. Test-Parameters: trivial serverjob=lustre-b2_10 serverbuildno=152 testlist=sanityn Test-Parameters: testlist=sanityn Signed-off-by: James Nunez Change-Id: Ieefd6f0f3dc0051646f07c309fb59dc6124c2975 Reviewed-on: https://review.whamcloud.com/33953 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Wei Liu Reviewed-by: Emoly Liu Reviewed-by: Oleg Drokin --- lustre/tests/sanityn.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index a3d505d..4695668 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -31,6 +31,7 @@ CLEANUP=${CLEANUP:-:} SETUP=${SETUP:-:} init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} +get_lustre_env init_logging if [ $(facet_fstype $SINGLEMDS) = "zfs" ]; then @@ -4492,6 +4493,9 @@ run_test 101c "Discard DoM data on close-unlink" # This test opens the file normally on $DIR1, which is on one mount, and then # opens it by handle on $DIR2, which is on a different mount. test_102() { + [ $MDS1_VERSION -lt $(version_code 2.11.57) ] && + skip "Needs MDS version 2.11.57 or later" + echo "Test file_handle syscalls" > $DIR/$tfile || error "write failed" check_fhandle_syscalls $DIR/$tfile $DIR2 || -- 1.8.3.1