From e98b866863f8f1e3e2eb7e2fa2cf4b2809697427 Mon Sep 17 00:00:00 2001 From: nic Date: Wed, 21 Jul 2004 17:11:33 +0000 Subject: [PATCH] allow h2$NETTYPE to match '*' as the client as well fixes problem when using non tcp NALS for test-framework tests --- lustre/tests/test-framework.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index bb70204..b63e47d 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -193,20 +193,20 @@ do_lmc() { } h2gm () { - if [ "$1" = "client" ]; then echo \'*\'; else + if [ "$1" = "client" -o "$1" = "'*'" ]; then echo \'*\'; else $PDSH $1 $GMNALNID -l | cut -d\ -f2 fi } h2tcp() { - if [ "$1" = "client" ]; then echo \'*\'; else + if [ "$1" = "client" -o "$1" = "'*'" ]; then echo \'*\'; else echo $1 fi } declare -fx h2tcp h2elan() { - if [ "$1" = "client" ]; then echo \'*\'; else + if [ "$1" = "client" -o "$1" = "'*'" ]; then echo \'*\'; else echo $1 | sed 's/[^0-9]*//g' fi } -- 1.8.3.1