示例#1
0
文件: daos_build.py 项目: liw/daos
def skip_on_centos7():
    """Decorator to allow selective skipping of test"""
    dist = distro.linux_distribution()
    if dist[0] == 'CentOS Linux' and dist[1] == '7':
        return skip('Newer software distribution needed')

    def _do(func):
        def wrapper(*args, **kwargs):
            return func(*args, **kwargs)

        return wrapper

    return _do
示例#2
0
文件: test.py 项目: clicx/daos
def skipForTicket(ticket):
    """Skip a test with a comment about a ticket."""
    return skip("Skipping until {} is fixed.".format(ticket))
示例#3
0
文件: test.py 项目: daos-stack/daos
def skipForTicket(ticket):
    ''' Skip a test with a comment about a ticket'''
    return skip("Skipping until {} is fixed.".format(ticket))