def wrapped(tc): if sys.platform == 'win32': # do not run valgrind tests on windows tc.enabled = False return tc tool = _require_valgrind_common(valgrind) ctx.add_requirement(tc, 'enabled_valgrind', tool) return tc
def wrapped(tc): disabled_tools = [] if isinstance(valgrind, list): for v in valgrind: disabled_tools.append(_require_valgrind_common(v)) else: disabled_tools.append(_require_valgrind_common(valgrind)) ctx.add_requirement(tc, 'disabled_valgrind', disabled_tools) return tc
def require_fs_exec(tc): """ Disable test if exec access for device is not permitted """ ctx.add_requirement(tc, 'require_fs_exec', True) return tc
def wrapped(tc): ctx.add_requirement(tc, 'devdax', tuple(dax_devices), **kwargs) return tc
def wrapped(tc): ctx.add_requirement(tc, 'granularity', Non, **kwargs) return tc
def require_admin(tc): """ Disable test if "enable_admin_tests" configuration is not set """ ctx.add_requirement(tc, 'require_admin', True) return tc
def wrapped(tc): ctx.add_requirement(tc, 'granularity', enum_values, **kwargs) return tc
def wrapped(tc): disabled_tools = [_require_valgrind_common(v) for v in valgrind] ctx.add_requirement(tc, 'disabled_valgrind', disabled_tools) return tc
def wrapped(tc): ctx.add_requirement(tc, 'require_ndctl', True, **kwargs) return tc
def wrapped(tc): builds = ctx.str_to_ctx_common(build, Build) ctx.add_requirement(tc, 'build', builds, **kwargs) return tc
def require_ndctl(tc): """Enable test only if ndctl is installed""" ctx.add_requirement(tc, 'require_ndctl', True) return tc
def wrapped(tc): ctx.add_requirement(tc, 'require_real_pmem', True) return tc
def wrapped(tc): ctx.add_requirement(tc, 'require_usc', True) return tc
def wrapped(tc): req = ctx.str_to_ctx_common(fs, Fs) ctx.add_requirement(tc, 'fs', req, **kwargs) return tc