def run():
    """
    Run tests for one or more drivers.  If -b is passed then
    we read driver list from the build bot configuration, otherwise
    we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failure = False

    for metadata in get_metadata(opts):
        app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs)

        app.report_header()

        if( opts.unit ):
            success = app.run_unit()
        elif( opts.integration ):
            success = app.run_integration()
        elif( opts.qualification ):
            success = app.run_qualification()
        elif( opts.publication ):
            success = app.run_publication()
        else:
            success = app.run()

        if(not success): failure = True

    return failure
Exemple #2
0
def run():
    """
    Run tests for one or more drivers.  If -b is passed then
    we read driver list from the build bot configuration, otherwise
    we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failure = False

    for metadata in get_metadata(opts):
        app = NoseTest(metadata,
                       testname=opts.testname,
                       suppress_stdout=opts.suppress_stdout,
                       noseargs=opts.noseargs)

        app.report_header()

        if (opts.unit):
            success = app.run_unit()
        elif (opts.integration):
            success = app.run_integration()
        elif (opts.qualification):
            success = app.run_qualification()
        elif (opts.publication):
            success = app.run_publication()
        else:
            success = app.run()

        if (not success): failure = True

    return failure