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 <vincent.fu@samsung.com>
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,