From 1df3357a1937481a19b23f5f9c4acf581b1ab5c2 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 16 Jul 2013 11:48:20 +0800 Subject: [PATCH] LU-2527 tests: add version check code to sanity test 183 This patch adds Lustre version check codes into sanity test 183 to make the test work with servers which do not have the following patch: Lustre-commit: ef75b59800d643e666d7c44c20287a8002e0a166 Lustre-change: http://review.whamcloud.com/4458 Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=183 \ 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: I5de38207ed1a3a7d69294abf979dc64be69a8135 Reviewed-on: http://review.whamcloud.com/6994 Reviewed-by: Fan Yong Tested-by: Hudson Reviewed-by: Bob Glossman Tested-by: Maloo 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 b799cac..55bd93a 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -9727,6 +9727,9 @@ test_182() { run_test 182 "Disable MDC RPCs semaphore wouldn't crash client ================" test_183() { # LU-2275 + [[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.3.56) ]] && + skip "Need MDS version at least 2.3.56" && return + [ $PARALLEL == "yes" ] && skip "skip parallel run" && return mkdir -p $DIR/$tdir || error "creating dir $DIR/$tdir" echo aaa > $DIR/$tdir/$tfile -- 1.8.3.1