From 72ae278ed2af481d35e82586c9aa13286b6e5335 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 21 Oct 2014 23:39:09 -0700 Subject: [PATCH] LU-5606 tests: add version check codes to conf-sanity test 41c This patch adds Lustre version check codes into conf-sanity test 41c to make the test interoperate with servers that do not have commit 166c5ba95cb2a4771317e030a3649e4480c8cbad. Test-Parameters: alwaysuploadlogs envdefinitions=ONLY=41c \ ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=86 mdsbuildno=86 \ testlist=conf-sanity Signed-off-by: Jian Yu Change-Id: Ifa02e9ef1a137257790a399d75cce1f703fb0d6b Reviewed-on: http://review.whamcloud.com/12376 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: Andreas Dilger --- lustre/tests/conf-sanity.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 101ffee..1cd8c21 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -2562,6 +2562,15 @@ test_41b() { run_test 41b "mount mds with --nosvc and --nomgs on first mount" test_41c() { + local server_version=$(lustre_version_code $SINGLEMDS) + + [[ $server_version -ge $(version_code 2.6.52) ]] || + [[ $server_version -ge $(version_code 2.5.26) && + $server_version -lt $(version_code 2.5.50) ]] || + [[ $server_version -ge $(version_code 2.5.4) && + $server_version -lt $(version_code 2.5.11) ]] || + { skip "Need MDS version 2.5.4+ or 2.5.26+ or 2.6.52+"; return; } + cleanup # MDT concurent start #define OBD_FAIL_TGT_DELAY_CONNECT 0x703 -- 1.8.3.1