[PATCH 15/21] t/fiotestcommon: do not require nvmecdev argument for Requirements
Ankit Kumar <[email protected]>
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
From: Vincent Fu <[email protected]> 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 <[email protected]> --- t/fiotestcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.25.1