From b635ddd7f6ebe04681fae34da3b26e3b6b5301f0 Mon Sep 17 00:00:00 2001 From: Vladimir Saveliev Date: Mon, 28 Oct 2013 23:20:21 +0400 Subject: [PATCH] LU-3920 tests: check MDS version before testing HSM feature Sanity tests 65y and 229 fail when MDS does not have HSM support. Check MDS version and skip the tests in that case. Xyratex-bug-id: MRP-1417 Signed-off-by: Vladimir Saveliev Change-Id: I80496ac67ec1b6b8032f465a0b5914bb12839d3b Reviewed-on: http://review.whamcloud.com/8121 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Faccini Bruno --- lustre/tests/sanity.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index a7031ca..53ff4d2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4572,6 +4572,9 @@ test_56x() { run_test 56x "lfs migration support" test_56y() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.4.53) ] && + skip "No HSM support on MDS of $(get_lustre_version)," \ + "need 2.4.53 at least" && return local res="" local dir0=$DIR/$tdir/$testnum @@ -11537,6 +11540,9 @@ test_228c() { run_test 228c "NOT shrink the last entry in OI index node to recycle idle leaf" test_229() { # LU-2482, LU-3448 + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.4.53) ] && + skip "No HSM support on MDS of $(get_lustre_version)," \ + "need 2.4.53 at least" && return [ $PARALLEL == "yes" ] && skip "skip parallel run" && return [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs" && return -- 1.8.3.1