Whamcloud - gitweb
b=19415
authorgrev <grev>
Fri, 24 Jul 2009 11:45:39 +0000 (11:45 +0000)
committergrev <grev>
Fri, 24 Jul 2009 11:45:39 +0000 (11:45 +0000)
i=Robert.Read
restart_client_loads fix related to new client load var name

lustre/tests/test-framework.sh

index c6eb2c2..f44f826 100644 (file)
@@ -953,9 +953,10 @@ restart_client_loads () {
         check_client_load $client
         rc=${PIPESTATUS[0]}
         if [ "$rc" != 0 -a "$expectedfail" ]; then
-            start_client_load $client
-            echo "Restarted client load: on $client. Checking ..."
-            check_client_load $client 
+            local var=$(client_var_name $client)_load
+            start_client_load $client ${!var}
+            echo "Restarted client load ${!var}: on $client. Checking ..."
+            check_client_load $client
             rc=${PIPESTATUS[0]}
             if [ "$rc" != 0 ]; then
                 log "Client load failed to restart on node $client, rc=$rc"