From: Fan Yong Date: Tue, 25 Sep 2012 08:46:19 +0000 (+0800) Subject: LU-2024 tests: skip OI scrub tests until the tag 2.2.90 X-Git-Tag: 2.3.51~33 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=48bad5d9db9baa7bca093de5c54294adf1cf8303;p=fs%2Flustre-release.git LU-2024 tests: skip OI scrub tests until the tag 2.2.90 Do not trigger OI scrub related tests on old releases. Signed-off-by: Fan Yong Change-Id: I9a4289b03ee8e222329b69891bb901fff9fbc86d Reviewed-on: http://review.whamcloud.com/4089 Reviewed-by: Yu Jian Tested-by: Hudson Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index a5647d3..1b2c6cd 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -17,10 +17,10 @@ init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} init_logging -[ "${MDSFSTYPE:-$FSTYPE}" != "ldiskfs" ] && +[ $(facet_fstype $SINGLEMDS) != ldiskfs ] && skip "test OI scrub only for ldiskfs" && exit 0 -[[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.3.0) ]] || - skip "Need MDS version at least 2.3.0" && exit 0 +[[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.2.90) ]] && + skip "Need MDS version at least 2.2.90" && exit 0 require_dsh_mds || exit 0 SAVED_MDSSIZE=${MDSSIZE} diff --git a/lustre/tests/scrub-performance.sh b/lustre/tests/scrub-performance.sh index 814a919..277bb91 100644 --- a/lustre/tests/scrub-performance.sh +++ b/lustre/tests/scrub-performance.sh @@ -13,8 +13,10 @@ init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} init_logging -[ "${MDSFSTYPE:-$FSTYPE}" != "ldiskfs" ] && +[ $(facet_fstype $SINGLEMDS) != ldiskfs ] && skip "OI scrub performance only for ldiskfs" && exit 0 +[[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.2.90) ]] && + skip "Need MDS version at least 2.2.90" && exit 0 require_dsh_mds || exit 0 NTHREADS=${NTHREADS:-0}