From 8a0375e684763521d5c7a9838bd633bcebc88010 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 12 Nov 2008 21:08:20 +0000
Subject: [PATCH] b=17634 i=Yury.Umanets insanity cleanup (remove dup fn, sync
 with HEAD t-f)

---
 lustre/tests/insanity.sh       | 9 +--------
 lustre/tests/test-framework.sh | 7 +++++++
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lustre/tests/insanity.sh b/lustre/tests/insanity.sh
index 3f998bbfe6..9f0955400a 100755
--- a/lustre/tests/insanity.sh
+++ b/lustre/tests/insanity.sh
@@ -73,13 +73,6 @@ shutdown_client() {
     fi
 }
 
-reboot_node() {
-    NODE=$1
-    if [ "$FAILURE_MODE" = HARD ]; then
-       $POWER_UP $NODE
-    fi
-}
-
 fail_clients() {
     num=$1
 
@@ -105,7 +98,7 @@ fail_clients() {
     echo "down clients: $DOWN_CLIENTS"
 
     for client in $DOWN_CLIENTS; do
-	reboot_node $client
+	boot_node $client
     done
     DOWN_NUM=`echo $DOWN_CLIENTS | wc -w`
     client_rmdirs
diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index 60aad78af8..dcb4629fa0 100644
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -443,6 +443,13 @@ reboot_facet() {
     fi
 }
 
+boot_node() {
+    local node=$1
+    if [ "$FAILURE_MODE" = HARD ]; then
+       $POWER_UP $node
+    fi
+}
+
 # verify that lustre actually cleaned up properly
 cleanup_check() {
     [ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \
-- 
GitLab