test/nvmf: fix new line when searching for soft roce interfaces

When combining two lists with of rmda_nics and all_nics,
last entry of rdma_nic and first from all_nics were
combined into one.

Change-Id: I809bdb6c8cc4dcc3aec2c0964598c35fccbba8ae
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/407394
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Tomasz Zawadzki 2018-04-10 10:26:01 -04:00 committed by Daniel Verkamp
parent 6e9293eaca
commit 5ee127aa2c

View File

@ -36,7 +36,7 @@ function detect_soft_roce_nics()
rdma_nics=$(get_rdma_if_list)
all_nics=$(ifconfig -s | awk '{print $1}')
all_nics=("${all_nics[@]/"Iface"}")
non_rdma_nics=$(echo "$rdma_nics $all_nics" | sort | uniq -u)
non_rdma_nics=$(echo -e "$rdma_nics\n$all_nics" | sort | uniq -u)
for nic in $non_rdma_nics; do
if [[ -d /sys/class/net/${nic}/bridge ]]; then
continue