# Skip specific tests by setting EXCEPT.
#
-SRCDIR=$(dirname $0)
-export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin
-
ONLY=${ONLY:-"$*"}
-ALWAYS_EXCEPT="$OST_POOLS_EXCEPT"
-# bug number for skipped test: -
-# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
-
-[ "$ALWAYS_EXCEPT$EXCEPT" ] &&
- echo "Skipping tests: $(echo $ALWAYS_EXCEPT $EXCEPT)"
-
-TMP=${TMP:-/tmp}
ORIG_PWD=${PWD}
-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="$OST_POOLS_EXCEPT"
+# bug number for skipped test: -
+# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
+
+build_test_filter
+
check_and_setup_lustre
if ! combined_mgs_mds; then
DIR=${DIR:-$MOUNT}
assert_DIR
-build_test_filter
-
MAXFREE=${MAXFREE:-$((2000000 * OSTCOUNT))}
# OST pools tests
run_test 1i "pool_new should fail if poolname and fs-name are missing"
test_1j() {
- create_pool ${FSNAME},$POOL
+ do_facet mgs lctl pool_new ${FSNAME},$POOL
[[ $? -ne 0 ]] ||
error "pool_new did not fail even if poolname format was wrong"
}
run_test 1j "pool_new should fail if poolname format is wrong"
test_1k() {
- create_pool ${FSNAME}/$POOL
+ do_facet mgs lctl pool_new ${FSNAME}/$POOL
[[ $? -ne 0 ]] ||
error "pool_new did not fail even if poolname format was wrong"
}