From 27b812a5db49f1353dcd6c408ffc2708e0ee912a Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Thu, 8 Nov 2018 16:55:01 +0900 Subject: [PATCH] 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 --- lustre/tests/sanity-sec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 1.8.3.1