From: Vincent Fu Date: Wed, 29 Jan 2025 22:29:23 +0000 (+0000) Subject: t/fiotestcommon: do not require nvmecdev argument for Requirements X-Git-Tag: fio-3.40~48 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e9709f4e853097eb9829aac075e123a90fb2e82c;p=fio.git t/fiotestcommon: do not require nvmecdev argument for Requirements Enable Requirements checking for test suites that do not have an nvmecdev argument. macOS does not support NUMA placement so we need to skip some tests on that platform when the test suite does not have an nvmecdev argument. This will be used in an upcoming patch for a set of verify tests. Signed-off-by: Vincent Fu --- diff --git a/t/fiotestcommon.py b/t/fiotestcommon.py index f5012c82..6c146b66 100644 --- a/t/fiotestcommon.py +++ b/t/fiotestcommon.py @@ -101,7 +101,7 @@ class Requirements(): Requirements._unittests = os.path.exists(unittest_path) Requirements._cpucount4 = multiprocessing.cpu_count() >= 4 - Requirements._nvmecdev = args.nvmecdev + Requirements._nvmecdev = args.nvmecdev if hasattr(args, 'nvmecdev') else False req_list = [ Requirements.linux,