Ejemplo n.º 1
0
def broken_suite_files(build):
    db = Application.get_db()
    error = None
    try:
        suite = BlobHelper(build, db).fetch_attachment('files/suite.xml')
    except ResourceNotFound:
        error = 'build has no attachment files/suite.xml'
    else:
        try:
            validate_suite(suite)
        except SuiteValidationError as error:
            pass
    if error:
        yield '%s\t%s\t%s\t%s\t%s\n' % (
            build.get('built_on'),
            build.get('domain'),
            build['_id'],
            build.get('copy_of'),
            error,
        )
Ejemplo n.º 2
0
def broken_suite_files(build):
    db = Application.get_db()
    error = None
    try:
        suite = db.fetch_attachment(build["_id"], "files/suite.xml")
    except ResourceNotFound:
        error = "build has no attachment files/suite.xml"
    else:
        try:
            validate_suite(suite)
        except SuiteValidationError as error:
            pass
    if error:
        yield "%s\t%s\t%s\t%s\t%s\n" % (
            build.get("built_on"),
            build.get("domain"),
            build["_id"],
            build.get("copy_of"),
            error,
        )
Ejemplo n.º 3
0
def broken_suite_files(build):
    db = Application.get_db()
    error = None
    try:
        suite = BlobHelper(build, db).fetch_attachment('files/suite.xml')
    except ResourceNotFound:
        error = 'build has no attachment files/suite.xml'
    else:
        try:
            validate_suite(suite)
        except SuiteValidationError as error:
            pass
    if error:
        yield '%s\t%s\t%s\t%s\t%s\n' % (
            build.get('built_on'),
            build.get('domain'),
            build['_id'],
            build.get('copy_of'),
            error,
        )