]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/nvmeof-mp/rc: run nvmeof-mp tests if we set multipath=N
authorYi Zhang <yi.zhang@redhat.com>
Thu, 26 Nov 2020 08:35:29 +0000 (16:35 +0800)
committerOmar Sandoval <osandov@fb.com>
Mon, 4 Jan 2021 22:40:12 +0000 (14:40 -0800)
To enable it, just do bellow step before we run it:
$ echo "options nvme_core multipath=N" >/etc/modprobe.d/nvme.conf

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
tests/nvmeof-mp/rc

index d7a7c878fb197b7e42a010ba027bc5f7e55c1f81..c77526f6ce1daef70b29f171bb9027bca38676ba 100755 (executable)
@@ -16,9 +16,11 @@ group_requires() {
 
        # Since the nvmeof-mp tests are based on the dm-mpath driver, these
        # tests are incompatible with the NVME_MULTIPATH kernel configuration
-       # option.
-       if _have_kernel_option NVME_MULTIPATH; then
-               SKIP_REASON="CONFIG_NVME_MULTIPATH has been set in .config"
+       # option with multipathing enabled in the nvme_core kernel module.
+       if _have_kernel_option NVME_MULTIPATH && \
+               _have_module_param_value nvme_core multipath Y; then
+               SKIP_REASON="CONFIG_NVME_MULTIPATH has been set in .config \
+and multipathing has been enabled in the nvme_core kernel module"
                return
        fi