Skip to content

Commit 547997e

Browse files
bvanasscheosandov
authored andcommitted
tests/srp/012: Fix the displayed test status
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: 0a2cbbd ("srp and nvmeof-mp: Check whether legacy dm is supported") Signed-off-by: Bart Van Assche <[email protected]>
1 parent 19f347b commit 547997e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/srp/012

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ test_io_schedulers() {
1515
modprobe "$(basename "$m")" >&/dev/null
1616
done
1717
for mq in y n; do
18-
[ $mq = n ] && ! _have_legacy_dm && continue
18+
if [ $mq = n ] && ! _have_legacy_dm; then
19+
unset SKIP_REASON
20+
continue
21+
fi
1922
use_blk_mq ${mq} ${mq} || return $?
2023
dev=$(get_bdev 0) || return $?
2124
dm=$(basename "$(readlink -f "${dev}")") || return $?

0 commit comments

Comments
 (0)