test/nvmf: Wait for net devices after they are moved from extra netns
Fixes #2072 Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: Iab6f1109cb4f3b31b3df62bb9ba678336c8b2502 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9168 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
a2838de9dc
commit
4f99de088e
@ -219,6 +219,11 @@ function get_tcp_if_list_by_driver() {
|
||||
local driver
|
||||
driver=${1:-ice}
|
||||
|
||||
# If we are called right after netns is deleted we need to wait a
|
||||
# bit to make sure all net devices are visible in the main netns
|
||||
# again.
|
||||
sleep 1
|
||||
|
||||
shopt -s nullglob
|
||||
tcp_if_list=(/sys/bus/pci/drivers/$driver/0000*/net/*)
|
||||
shopt -u nullglob
|
||||
|
Loading…
Reference in New Issue
Block a user