Whamcloud - gitweb
add usage() to test_framework, and use getopts cause getopt is broken
authorrread <rread>
Fri, 21 Nov 2003 01:04:56 +0000 (01:04 +0000)
committerrread <rread>
Fri, 21 Nov 2003 01:04:56 +0000 (01:04 +0000)
insanity fixes for hardware

lustre/tests/insanity.sh
lustre/tests/replay-single.sh

index c2c030f..769297b 100755 (executable)
@@ -93,7 +93,7 @@ setup() {
     [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
     start mds $MDSLCONFARGS ${REFORMAT}
     for node in $CLIENTS; do
-       $PDSH $node lconf --node client_facet --ptldebug $PTLDEBUG --select mds_service=$ACTIVEMDS $XMLCONFIG
+       do_node $node lconf --node client_facet --ptldebug $PTLDEBUG --select mds_service=$ACTIVEMDS $XMLCONFIG
     done
 }
 
@@ -105,7 +105,7 @@ cleanup() {
         fail mds
     fi
     for node in $CLIENTS; do
-       $PDSH $node lconf ${FORCE} --cleanup --node client_facet $XMLCONFIG
+       do_node $node lconf ${FORCE} --cleanup --node client_facet $XMLCONFIG || true
     done
 
     stop mds ${FORCE} $MDSLCONFARGS
@@ -172,6 +172,7 @@ test_0() {
     # prepare for MDS failover
     change_active mds
     reboot_facet mds
+    wait_for mds
     start mds
     client_df
 
index 65f2804..68e135e 100755 (executable)
@@ -10,7 +10,6 @@ LUSTRE=${LUSTRE:-`dirname $0`/..}
 . $LUSTRE/tests/test-framework.sh
 
 init_test_env $@
-set -xv
 
 . ${CONFIG:=$LUSTRE/tests/cfg/local.sh}