From: Sebastien Buisson Date: Thu, 8 Nov 2018 07:55:01 +0000 (+0900) Subject: LU-11645 tests: fix sanity-sec test 31 X-Git-Tag: 2.12.0-RC1~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F33622%2F2;p=fs%2Flustre-release.git LU-11645 tests: fix sanity-sec test 31 In sanity-sec test 31, command to add new LNet network ${NETTYPE}999 may fail if servers have interface names different from the one used on the client. So fix the command so that it is run directly on each node. Test-Parameters: trivial envdefinitions=ONLY=31 testlist=sanity-sec Signed-off-by: Sebastien Buisson Change-Id: Ibf9101524d94188b3beae3debe45e2ba151999ca Reviewed-on: https://review.whamcloud.com/33622 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Sonia Sharma Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index c5d9663..8410b84 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -2232,8 +2232,8 @@ test_31() { # add network ${NETTYPE}999 on all nodes do_nodes $(comma_list $(all_nodes)) \ "$LNETCTL lnet configure && $LNETCTL net add --if \ - $($LNETCTL net show --net $net | awk 'BEGIN{inf=0} \ - {if (inf==1) print $2; fi; inf=0} /interfaces/{inf=1}') \ + \$($LNETCTL net show --net $net | awk 'BEGIN{inf=0} \ + {if (inf==1) print \$2; fi; inf=0} /interfaces/{inf=1}') \ --net ${NETTYPE}999" || error "unable to configure NID ${NETTYPE}999"