Spdk/test/common
Tomasz Zawadzki 6b19775bd9 test/common: fail the tests if get_nvme_bdfs() returns no devices
Usual way to call get_nvme_bdfs() is to iterate over resulting bdfs.
When no bdfs are returned, most of the scripts do no not execute tests
at all and assume success.

Instead of adding error checking for each and every script for no bdfs,
this patch makes get_nvme_bdfs() exit with test failure.

This assumes that there will never be a test that expects no devices
to be present.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I1e41a885c76ce6cc248fb076bc4f4efd4695ff3c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2836
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
2020-07-06 23:22:59 +00:00
..
config test/vm_setup.sh: prioritize dnf over yum 2020-07-01 09:13:03 +00:00
lib rdma: Add new API spdk_rdma_qp_accept 2020-06-18 07:28:04 +00:00
applications.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
autotest_common.sh test/common: fail the tests if get_nvme_bdfs() returns no devices 2020-07-06 23:22:59 +00:00
skipped_build_files.txt lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
skipped_tests.txt test/cuse: run namespace managment test if device supports it 2020-06-17 07:20:55 +00:00