test/nvmf: Use device name instead of driver's

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I741e781c606e25834d67acaa9b14dac02d06a8b1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9862
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
This commit is contained in:
Michal Berger 2021-10-13 15:10:22 +02:00 committed by Jim Harris
parent 767197af1e
commit c32476bb36
2 changed files with 6 additions and 4 deletions

View File

@ -155,8 +155,8 @@ export SPDK_TEST_USE_IGB_UIO
export SPDK_TEST_SCHEDULER
: ${SPDK_TEST_SCANBUILD:=0}
export SPDK_TEST_SCANBUILD
: ${SPDK_TEST_NVMF_DRIVER:=}
export SPDK_TEST_NVMF_DRIVER
: ${SPDK_TEST_NVMF_NICS:=}
export SPDK_TEST_NVMF_NICS
# always test with SPDK shared objects.
export SPDK_LIB_DIR="$rootdir/build/lib"

View File

@ -309,10 +309,12 @@ function gather_supported_nvmf_pci_devs() {
fi
# Try to respect what CI wants to test and override pci_devs[]
if [[ $SPDK_TEST_NVMF_DRIVER == mlx5_ib ]]; then
if [[ $SPDK_TEST_NVMF_NICS == mlx5 ]]; then
pci_devs=("${mlx[@]}")
elif [[ $SPDK_TEST_NVMF_DRIVER == ice ]]; then
elif [[ $SPDK_TEST_NVMF_NICS == e810 ]]; then
pci_devs=("${e810[@]}")
elif [[ $SPDK_TEST_NVMF_NICS == x722 ]]; then
pci_devs=("${x722[@]}")
fi
if ((${#pci_devs[@]} == 0)); then