X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-lsnapshot.sh;h=afa20ca90ec14a6620a86e9e50fc3d9a6910644f;hb=276c22ae3869c1f775cded248d53b9c2a829c801;hp=81267994769b3748d017462a91d7b693845d5249;hpb=2d63d5bc74a5b2477d795bf9e9b0eba94f7fc19f;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-lsnapshot.sh b/lustre/tests/sanity-lsnapshot.sh index 8126799..afa20ca 100755 --- a/lustre/tests/sanity-lsnapshot.sh +++ b/lustre/tests/sanity-lsnapshot.sh @@ -7,22 +7,20 @@ set -e ONLY=${ONLY:-"$*"} -ALWAYS_EXCEPT="$SANITY_LSNAPSHOT_EXCEPT" -[ "$SLOW" = "no" ] && EXCEPT_SLOW="" -# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! -LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)} +LUSTRE=${LUSTRE:-$(dirname $0)/..} . $LUSTRE/tests/test-framework.sh init_test_env $@ -. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} init_logging -[[ $(lustre_version_code mds1) -lt $(version_code 2.9.55) ]] || -[[ $(lustre_version_code ost1) -lt $(version_code 2.9.55) ]] && - skip "Need server version at least 2.9.55" && exit 0 -[[ $(facet_fstype mds1) = "ldiskfs" ]] || -[[ $(facet_fstype ost1) = "ldiskfs" ]] && - skip "ZFS only test" && exit 0 +ALWAYS_EXCEPT="$SANITY_LSNAPSHOT_EXCEPT " +build_test_filter + +[[ "$MDS1_VERSION" -lt $(version_code 2.9.55) ]] || +[[ "$OST1_VERSION" -lt $(version_code 2.9.55) ]] && + skip "Need server version at least 2.9.55" +[[ "$mds1_FSTYPE" = "ldiskfs" ]] || [[ "$ost1_FSTYPE" = "ldiskfs" ]] && + skip "ZFS only test" require_dsh_mds || exit 0 require_dsh_ost || exit 0 @@ -34,7 +32,6 @@ do_nodes $(comma_list $(mdts_nodes)) $LCTL set_param debug=+snapshot lss_gen_conf lss_cleanup -build_test_filter test_0() { echo "Create lss_0_0 with default"