From 29b5efda7b710c089e8539277c432795c68e5bf7 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Thu, 23 Oct 2008 18:14:27 +0000
Subject: [PATCH] b=16551 i=Nathan

skip replay/recovery tests if remote MDS/OSS with nodsh
lost test_27 fix
---
 lustre/tests/recovery-small.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh
index 2014e286e3..ae183db131 100755
--- a/lustre/tests/recovery-small.sh
+++ b/lustre/tests/recovery-small.sh
@@ -697,13 +697,14 @@ test_27() {
 	FAILURE_MODE="SOFT"
 	facet_failover mds
 #define OBD_FAIL_OSC_SHUTDOWN            0x407
-	lctl set_param fail_loc=0x80000407
+	do_facet mds lctl set_param fail_loc=0x80000407
 	# need to wait for reconnect
 	echo -n waiting for fail_loc
-	while [ `lctl get_param -n fail_loc` -eq -2147482617 ]; do
+	while [ $(do_facet mds lctl get_param -n fail_loc) -eq -2147482617 ]; do
 	    sleep 1
 	    echo -n .
 	done
+	do_facet mds lctl get_param -n fail_loc
 	facet_failover mds
 	#no crashes allowed!
         kill -USR1 $CLIENT_PID
-- 
GitLab