From 6eee190375f0ec23c56e300e7ddcdc74d65279f2 Mon Sep 17 00:00:00 2001 From: Xiao Yang Date: Fri, 24 Jun 2022 15:50:23 +0800 Subject: [PATCH] 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 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 --- tests/nvmeof-mp/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc index dcb2e3c..708196b 100755 --- a/tests/nvmeof-mp/rc +++ b/tests/nvmeof-mp/rc @@ -24,6 +24,9 @@ and multipathing has been enabled in the nvme_core kernel module" return fi + # Avoid test skip due to SKIP_REASON set by _have_kernel_option(). + unset SKIP_REASON + _have_configfs || return required_modules=( dm_multipath -- 2.49.0