From: nic Date: Wed, 21 Jul 2004 17:11:33 +0000 (+0000) Subject: allow h2$NETTYPE to match '*' as the client as well fixes problem when X-Git-Tag: v1_8_0_110~486^5~177 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e98b866863f8f1e3e2eb7e2fa2cf4b2809697427;p=fs%2Flustre-release.git allow h2$NETTYPE to match '*' as the client as well fixes problem when using non tcp NALS for test-framework tests --- 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 }