All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests] nvmeof-mp/rc: Avoid skipping tests due to the expected SKIP_REASON
@ 2022-06-24  7:50 Xiao Yang
  2022-06-24  8:20 ` Shinichiro Kawasaki
  0 siblings, 1 reply; 7+ messages in thread
From: Xiao Yang @ 2022-06-24  7:50 UTC (permalink / raw)
  To: linux-block; +Cc: shinichiro.kawasaki, Xiao Yang

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>
---
 tests/nvmeof-mp/rc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc
index dcb2e3c..9c91f8c 100755
--- a/tests/nvmeof-mp/rc
+++ b/tests/nvmeof-mp/rc
@@ -24,6 +24,11 @@ and multipathing has been enabled in the nvme_core kernel module"
 		return
 	fi
 
+	# In _have_kernel_option(), SKIP_REASON = "kernel option
+	# NVME_MULTIPATH has not been enabled" is expected so
+	# avoid skipping tests by unsetting the SKIP_REASON
+	unset SKIP_REASON
+
 	_have_configfs || return
 	required_modules=(
 		dm_multipath
-- 
2.34.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-26  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  7:50 [PATCH blktests] nvmeof-mp/rc: Avoid skipping tests due to the expected SKIP_REASON Xiao Yang
2022-06-24  8:20 ` Shinichiro Kawasaki
2022-06-24  9:59   ` Li, Zhijian
2022-06-24 12:17     ` Shinichiro Kawasaki
2022-06-25  7:51       ` Li, Zhijian
2022-06-26  8:16         ` yangx.jy
2022-06-24 23:28   ` Shinichiro Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.