From patchwork Fri Jun 24 07:50:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 12894045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3098EC43334 for ; Fri, 24 Jun 2022 07:50:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbiFXHud (ORCPT ); Fri, 24 Jun 2022 03:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiFXHuc (ORCPT ); Fri, 24 Jun 2022 03:50:32 -0400 Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DCCB653A5D for ; Fri, 24 Jun 2022 00:50:30 -0700 (PDT) IronPort-Data: A9a23:X4MS5KryrN+z2JPr5Z26FicLG7teBmIqZxIvgKrLsJaIsI5as4F+vmVMCGyOPfyCYjH1LdogbImzpE0Hv8fXm9M2T1Zp/C02QiMRo6IpJ/zDcB6oYHn6wu4v7a5fx5xHLIGGdajYd1eEzvuWGuWn/SkUOZ2gHOKmUraeYnkpHGeIdQ964f5ds79g6mJXqYjha++9kYuaT/z3YDdJ6RYtWo4nw/7rRCdUgRjHkGhwUmrSyhx8lAS2e3E9VPrzLEwqRpfyatE88uWSH44vwFwll1418SvBCvv9+lr6WkYMBLDPPwmSkWcQUK+n6vRAjnVqlP9la7xHMgEK49mKt4kZJNFlpJW2RhdvPLzklvkfUgVDDmd1OqguFLrveCLi7pTPlhaaG5fr67A0ZK0sBqUc++BqESRE8fsTKxgTYR2ZweG72rS2Tq9rnMtLBNLrPYUesXFh1zafDv85SIvKQKTi+tNTmjw3g6hz8Vz2DyYCQWM3Kk2ePFsUYRFKYK/SVdyA3hHXGwC0YnrMzUbv31Xu8Q== IronPort-HdrOrdr: A9a23:6HyvFKuN8t8O9xiHfWROBjyj7skDnNV00zEX/kB9WHVpmszxraGTdZMgpHjJYVcqKRcdcL+7Scq9qB/nmqKdgrNhWYtKPjOW2ldARbsKheCJrlHd8kbFltK1u50PT0EHMqyUMbFlt7eB3CCIV8Yn3MKc8L2lwcPXz3JWRwlsbK16hj0JcjqzIwlnQhVcH5olGN657spDnTCpfnMadYCVHX8ANtKz3OHjpdb3ZwIcHR475E2rhTOs0rTzFB+VxVM/flp0sM4fzVQ= X-IronPort-AV: E=Sophos;i="5.88,333,1635177600"; d="scan'208";a="125704134" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 24 Jun 2022 15:50:29 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 510124D68A22; Fri, 24 Jun 2022 15:50:26 +0800 (CST) Received: from G08CNEXJMPEKD02.g08.fujitsu.local (10.167.33.202) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Jun 2022 15:50:26 +0800 Received: from G08CNEXCHPEKD08.g08.fujitsu.local (10.167.33.83) by G08CNEXJMPEKD02.g08.fujitsu.local (10.167.33.202) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Jun 2022 15:50:26 +0800 Received: from localhost.localdomain (10.167.215.54) by G08CNEXCHPEKD08.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Fri, 24 Jun 2022 15:50:26 +0800 From: Xiao Yang To: CC: , Xiao Yang Subject: [PATCH blktests] nvmeof-mp/rc: Avoid skipping tests due to the expected SKIP_REASON Date: Fri, 24 Jun 2022 15:50:23 +0800 Message-ID: <20220624075023.23104-1-yangx.jy@fujitsu.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-yoursite-MailScanner-ID: 510124D68A22.A3E3B X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org 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 --- tests/nvmeof-mp/rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc index dcb2e3c..9c91f8c 100755 --- a/tests/nvmeof-mp/rc +++ b/tests/nvmeof-mp/rc @@ -24,6 +24,11 @@ and multipathing has been enabled in the nvme_core kernel module" return fi + # In _have_kernel_option(), SKIP_REASON = "kernel option + # NVME_MULTIPATH has not been enabled" is expected so + # avoid skipping tests by unsetting the SKIP_REASON + unset SKIP_REASON + _have_configfs || return required_modules=( dm_multipath