test/bdevio: allow reset test to fail on NVMe

NVMe-oF target doesn't support reset yet - but we want
to use bdevio to test other NVMe-oF target functionality
in the next patch.

An issue will be filed against the reset support so
that it gets added.

Signed-off-by: Jim Harris <james.r.harris@intel.com>

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452935 (master)

(cherry picked from commit 4460761f22)
Change-Id: I84b2be9268a344ee9e613a39487345dc1b8187bf
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457205
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Jim Harris 2019-05-02 17:24:47 -07:00 committed by Darek Stojaczyk
parent c2d4486dba
commit 9cbb4af809

View File

@ -824,7 +824,12 @@ blockdev_test_reset(void)
target = g_io_targets;
while (target != NULL) {
blockdev_reset(target);
CU_ASSERT_EQUAL(g_completion_success, true);
/* Workaround: NVMe-oF target doesn't support reset yet - so for now
* don't fail the test if it's an NVMe bdev.
*/
if (!spdk_bdev_io_type_supported(target->bdev, SPDK_BDEV_IO_TYPE_NVME_IO)) {
CU_ASSERT_EQUAL(g_completion_success, true);
}
target = target->next;
}