Whamcloud - gitweb
LU-6142 tests: Add missing /tmp/target2 under cleanup_src_tgt
[fs/lustre-release.git] / lustre / tests / large-scale.sh
index 7973edb..2b70efc 100644 (file)
@@ -8,7 +8,7 @@ CLEANUP=${CLEANUP:-""}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$LARGE_SCALE_EXCEPT "
@@ -17,7 +17,6 @@ build_test_filter
 
 remote_mds_nodsh && skip "remote MDS with nodsh"
 
-[ -z "$CLIENTS" ] && skip_env "$TESTSUITE: Need two or more clients"
 [ $CLIENTCOUNT -lt 2 ] &&
        skip_env "$TESTSUITE: Need 2+ clients, have only $CLIENTCOUNT"
 
@@ -57,7 +56,7 @@ test_3a() {
        chmod 0777 $dir
 
        while [ $num -le $CLIENTCOUNT ]; do
-               list=$(comma_list ${nodes[@]:0:$num})
+               list=$(comma_list "${nodes[@]:0:$num}")
 
                generate_machine_file $list $MACHINEFILE ||
                        error "can not generate machinefile"
@@ -108,6 +107,6 @@ test_3a() {
 
 run_test 3a "recovery time, $CLIENTCOUNT clients"
 
-complete $SECONDS
+complete_test $SECONDS
 check_and_cleanup_lustre
 exit_status