Exemple #1
0
def run(package_name=None):
    runtime = testrun.start_new_testrun()
    # Get list of packages from DB
    if (package_name is None):
        download_packages(runtime)
    else:
        download_package(runtime, package_name)
def test_one_package(filename, package_name, runtime_id=None):
    
    package = models.Package.query.filter_by(
        package_name=package_name).first()
    package_id = package.id

    if runtime_id is None:
        runtime_id = testrun.start_new_testrun().id

    print "Package: %s" % package_name
    _test_one_package(filename, package_id, runtime_id)
def start_testing(package_name=None):
    newrun = testrun.start_new_testrun()
    return load_packages(newrun.id, package_name)
def enqueue_package_for_test(filename, package_name):
    package = models.Package.query.filter_by(package_name=package_name).first()
    package_id = package.id
    runtime_id = testrun.start_new_testrun().id
    enqueue_download(filename, runtime_id, package_id)