]> www.infradead.org Git - users/hch/blktests.git/commit
nvmeof-mp/rc: Avoid skipping tests due to the expected SKIP_REASON
authorXiao Yang <yangx.jy@fujitsu.com>
Fri, 24 Jun 2022 07:50:23 +0000 (15:50 +0800)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 24 Jun 2022 23:22:31 +0000 (08:22 +0900)
commit6eee190375f0ec23c56e300e7ddcdc74d65279f2
tree3c7a2bc4c2001b112e0b3fcfab3658c25f3acdf5
parent19ccca4b0b73c569ae9ea3b8a721937417323c7f
nvmeof-mp/rc: Avoid skipping tests due to the expected SKIP_REASON

In _have_kernel_option(), SKIP_REASON = "kernel option NVME_MULTIPATH
has not been enabled" is expected but all nvmeof-mp tests are skipped
due to the SKIP_REASON. For example:
-----------------------------------------------------
./check nvmeof-mp/001
nvmeof-mp/***                                                [not run]
    kernel option NVME_MULTIPATH has not been enabled
-----------------------------------------------------

Avoid the issue by unsetting the SKIP_REASON.

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Fixes: 7ae143852f6c ("common/rc: don't unset previous SKIP_REASON in _have_kernel_option()")
[Shin'ichiro: reduced in-line comment]
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nvmeof-mp/rc