From 547997ecb87442ed83d70a807df86792f7886dd7 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 23 Aug 2021 11:10:31 -0700 Subject: [PATCH] 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: 0a2cbbd1874d ("srp and nvmeof-mp: Check whether legacy dm is supported") Signed-off-by: Bart Van Assche --- tests/srp/012 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/srp/012 b/tests/srp/012 index ffd56ef..1a2fc6d 100755 --- a/tests/srp/012 +++ b/tests/srp/012 @@ -15,7 +15,10 @@ test_io_schedulers() { 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 $? -- 2.50.1