From 814e20cc43f237ed0a698d1d17908610cc9bba28 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Tue, 7 Jul 2015 21:37:29 +0800 Subject: [PATCH] LU-6661 test: add version check for tests add version check for sanity 27e and 162c, so that interop test won't fail. Signed-off-by: Lai Siyao Change-Id: I45cc25d71e2e7b361455c9dcde1c9a3e1c797e9b Reviewed-on: http://review.whamcloud.com/15521 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 42562f5..4828b19 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1357,6 +1357,9 @@ test_27d() { run_test 27d "create file with default settings ================" test_27e() { + # LU-5839 adds check for existed layout before setting it + [[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.56) ]] && + skip "Need MDS version at least 2.7.56" && return test_mkdir -p $DIR/d27 $SETSTRIPE -c 2 $DIR/d27/f12 || error "setstripe failed" $SETSTRIPE -c 2 $DIR/d27/f12 && error "setstripe succeeded twice" @@ -10772,6 +10775,8 @@ run_test 162b "striped directory path lookup sanity" # LU-4239: Verify fid2path works with paths 100 or more directories deep test_162c() { + [[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.51) ]] && + skip "Need MDS version at least 2.7.51" && return test_mkdir $DIR/$tdir.local test_mkdir $DIR/$tdir.remote local lpath=$tdir.local -- 1.8.3.1