Whamcloud - gitweb
b=20124
authorgrev <grev>
Tue, 28 Jul 2009 16:10:46 +0000 (16:10 +0000)
committergrev <grev>
Tue, 28 Jul 2009 16:10:46 +0000 (16:10 +0000)
i=Jian.Yu
wait_for host for HARD failure mode

lustre/tests/test-framework.sh

index f44f826..d753ed9 100644 (file)
@@ -824,6 +824,7 @@ boot_node() {
     local node=$1
     if [ "$FAILURE_MODE" = HARD ]; then
        $POWER_UP $node
+       wait_for_host $node
     fi
 }
 
@@ -1907,8 +1908,7 @@ check_network() {
     local WAIT=0
     local MAX=$2
     while [ $NETWORK -eq 0 ]; do
-        ping -c 1 -w 3 $1 > /dev/null
-        if [ $? -eq 0 ]; then
+        if ping -c 1 -w 3 $1 > /dev/null; then
             NETWORK=1
         else
             WAIT=$((WAIT + 5))