X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Flnet-selftest.sh;h=ed8104d085423df56c23630c05b0cdc562dc9aab;hb=76ca884398cae59e455caf3ae2ab1609c5fb1eea;hp=0589a953eef7321791ac2b3a0a2b943e83520d29;hpb=35e4175cebf5182bc1351592053fbdf453495b7a;p=fs%2Flustre-release.git diff --git a/lustre/tests/lnet-selftest.sh b/lustre/tests/lnet-selftest.sh index 0589a95..ed8104d 100755 --- a/lustre/tests/lnet-selftest.sh +++ b/lustre/tests/lnet-selftest.sh @@ -1,17 +1,27 @@ #!/bin/bash -# -*- mode: Bash; tab-width: 4; indent-tabs-mode: t; -*- -# vim:shiftwidth=4:softtabstop=4:tabstop=4: -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 -# -ALWAYS_EXCEPT="$ALWAYS_EXCEPT $LNET_SELFTEST_EXCEPT" +ALWAYS_EXCEPT="$LNET_SELFTEST_EXCEPT" +if [[ $(uname -m) = aarch64 ]]; then + # bug number for skipped test: LU-10073 + ALWAYS_EXCEPT+=" smoke" +fi -[ x$LST = x ] && { skip_env "lst not found LST=$LST" && exit 0; } +# Check if running on Ubuntu client +if [ -r /etc/os-release ]; then + if grep -qi ubuntu /etc/os-release; then + # bug number for skipped test: LU-10073 + ALWAYS_EXCEPT+=" smoke" + fi +fi + +build_test_filter + +[ x$LST = x ] && skip_env "lst not found LST=$LST" # FIXME: what is the reasonable value here? lst_LOOP=${lst_LOOP:-100000} @@ -79,8 +89,6 @@ if is_mounted $MOUNT2; then interim_umount1=true fi -build_test_filter - lst_prepare () { # Workaround for bug 15619 lst_cleanup_all @@ -183,4 +191,5 @@ run_test smoke "lst regression test" complete $SECONDS _restore_mount +check_and_cleanup_lustre exit_status