示例#1
0
    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
示例#2
0
    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
示例#3
0
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
示例#4
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'devdax', tuple(dax_devices), **kwargs)
     return tc
示例#5
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'granularity', Non, **kwargs)
     return tc
示例#6
0
def require_admin(tc):
    """
    Disable test if "enable_admin_tests" configuration is not set
    """
    ctx.add_requirement(tc, 'require_admin', True)
    return tc
示例#7
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'granularity', enum_values, **kwargs)
     return tc
示例#8
0
文件: valgrind.py 项目: tkymymt/pmdk
    def wrapped(tc):
        disabled_tools = [_require_valgrind_common(v) for v in valgrind]
        ctx.add_requirement(tc, 'disabled_valgrind', disabled_tools)

        return tc
示例#9
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'require_ndctl', True, **kwargs)
     return tc
示例#10
0
 def wrapped(tc):
     builds = ctx.str_to_ctx_common(build, Build)
     ctx.add_requirement(tc, 'build', builds, **kwargs)
     return tc
示例#11
0
def require_ndctl(tc):
    """Enable test only if ndctl is installed"""
    ctx.add_requirement(tc, 'require_ndctl', True)
    return tc
示例#12
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'require_real_pmem', True)
     return tc
示例#13
0
 def wrapped(tc):
     ctx.add_requirement(tc, 'require_usc', True)
     return tc
示例#14
0
 def wrapped(tc):
     req = ctx.str_to_ctx_common(fs, Fs)
     ctx.add_requirement(tc, 'fs', req, **kwargs)
     return tc