X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Ffunctions.sh;h=e49ca5de6c70712a47f10e52bad0c91c94294cf4;hb=fb14b7bc37c613482bea672ec11dbd98633ddce3;hp=8e5a3cda8b005a014c3b0d136a37e55629a3e1ec;hpb=814e20cc43f237ed0a698d1d17908610cc9bba28;p=fs%2Flustre-release.git diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 8e5a3cd..e49ca5d 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -194,11 +194,16 @@ mpi_run () { } nids_list () { - local list - for i in ${1//,/ }; do - list="$list $i@$NETTYPE" - done - echo $list + local list + local escape="$2" + for i in ${1//,/ }; do + if [ "$list" = "" ]; then + list="$i@$NETTYPE" + else + list="$list$escape $i@$NETTYPE" + fi + done + echo $list } # FIXME: all setup/cleanup can be done without rpc.sh