The _have_* scripts set the SKIP_REASON variable. That variable controls
whether the status [passed] or [not run] is displayed. This patch causes
the status [passed] to be displayed instead of [not run] if legacy dm
support is not available.
Fixes: 0a2cbbd1874d ("srp and nvmeof-mp: Check whether legacy dm is supported")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
modprobe "$(basename "$m")" >&/dev/null
done
for mq in y n; do
- [ $mq = n ] && ! _have_legacy_dm && continue
+ if [ $mq = n ] && ! _have_legacy_dm; then
+ unset SKIP_REASON
+ continue
+ fi
use_blk_mq ${mq} ${mq} || return $?
dev=$(get_bdev 0) || return $?
dm=$(basename "$(readlink -f "${dev}")") || return $?