From e55470912ac80e3408cc24b8dd3e07683aa98257 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Wed, 17 Jul 2013 16:43:15 +0800 Subject: [PATCH] LU-3310 tests: add version check code to sanity test 17o This patch adds Lustre version check codes into sanity test 17o to make the test work with servers which do not have the following patch: Lustre-commit: 20544bd96269dbda51a76d31c2d09935637e8b2d Lustre-change: http://review.whamcloud.com/6121 Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=17 \ clientdistro=el6 serverdistro=el6 clientarch=x86_64 \ serverarch=x86_64 serverjob=lustre-b2_1 serverbuildno=215 \ testlist=sanity Signed-off-by: Jian Yu Change-Id: I590a4fb03d6dd406ff1d859825f9033a24ceb66c Reviewed-on: http://review.whamcloud.com/7017 Tested-by: Hudson Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index eae0af9..29d04d0 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -638,6 +638,9 @@ test_17n() { run_test 17n "run e2fsck against master/slave MDT which contains remote dir" test_17o() { + [[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.3.64) ]] && + skip "Need MDS version at least 2.3.64" && return + local WDIR=$DIR/${tdir}o local mdt_index local mdtdevname -- 1.8.3.1