]> www.infradead.org Git - users/hch/blktests.git/commit
nvmeof-mp/001: Set expected count properly
authorXiao Yang <yangx.jy@fujitsu.com>
Sat, 21 May 2022 12:30:20 +0000 (20:30 +0800)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 26 May 2022 04:21:42 +0000 (13:21 +0900)
commit8c66c1980d1504786fb99508afe80a38da8ea422
tree0fa3b4a8cea834bf92e0fdd0fb04988a55194a10
parent7de67168684f605129367775a52f6a0d3e59f8f4
nvmeof-mp/001: Set expected count properly

The number of block devices will increase according
to the number of RDMA-capable NICs.
For example, nvmeof-mp/001 with two RDMA-capable NICs
got the following error:
-------------------------------------
    Configured NVMe target driver
    -count_devices(): 1 <> 1
    +count_devices(): 2 <> 1
    Passed
-------------------------------------

Set expected count properly by calculating the number
of RDMA-capable NICs.

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nvmeof-mp/001
tests/nvmeof-mp/001.out