X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmetadata-updates.sh;h=86ae8db6d07715bfcdcd4bafa3115844adbdaaee;hb=223728a97c397e6e6c91808dd36a2539705f00b8;hp=d82d0a8c9b1b251494aa385d65fa48e1518784ef;hpb=a72a949be47fc317de5d1cbcde7d79a5dad91e64;p=fs%2Flustre-release.git diff --git a/lustre/tests/metadata-updates.sh b/lustre/tests/metadata-updates.sh index d82d0a8..86ae8db 100755 --- a/lustre/tests/metadata-updates.sh +++ b/lustre/tests/metadata-updates.sh @@ -8,18 +8,16 @@ set -e ONLY=${ONLY:-"$*"} -#Bug number for excepting test -ALWAYS_EXCEPT="$METADATA_UPDATES_EXCEPT" -# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT LIST - -[ "$SLOW" = "no" ] && EXCEPT_SLOW="" - -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 +#Bug number for skipped test: +ALWAYS_EXCEPT="$METADATA_UPDATES_EXCEPT " +# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT LIST +build_test_filter + TRACE=${TRACE:-"+x"} TESTDIR=${TESTDIR:-$DIR/d0.$(basename $0 .sh)} @@ -50,7 +48,6 @@ NUM_FILES=1000 log "===== $0 ====== " check_and_setup_lustre -build_test_filter cleanup_prepare () { @@ -260,19 +257,18 @@ run_test 2 "directory content create, check, delete files , check" test_3() { WRITE_DISJOINT=${WRITE_DISJOINT:-$(which write_disjoint 2> /dev/null)} || true disjoint_file=$TESTDIR/$tfile - machine_file=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines} numloops=1000 [ ! -f "$WRITE_DISJOINT" ] && skip_env "write_disjoint not found" set $TRACE - generate_machine_file $NODES_TO_USE $machine_file - mpi_run ${MACHINEFILE_OPTION} $machine_file \ + generate_machine_file $NODES_TO_USE $MACHINEFILE + mpi_run ${MACHINEFILE_OPTION} ${MACHINEFILE} \ -np $(get_node_count ${NODES_TO_USE//,/ }) \ $WRITE_DISJOINT -f $disjoint_file -n $numloops || error "mpi_run failed" - rm -f $machine_file + rm -f $MACHINEFILE } run_test 3 "write_disjoint test"