예제 #1
0
def main(test_root, log, rev_old=None, rev_new="HEAD"):
    #Need a mapping between test urls and filesystem paths
    warnings = {}
    statuses = {}

    with open(log) as f:
        test_results = load_results(structuredlog.read_logs(f))

    manifest = metadata.load_manifest(test_root)
    if rev_old is not None:
        change_data = load_change_data(rev_old, rev_new)
    else:
        change_data = {}

    update_expected(manifest, change_data, test_results)
예제 #2
0
def main(test_root, log, rev_old=None, rev_new="HEAD"):
    #Need a mapping between test urls and filesystem paths
    warnings = {}
    statuses = {}

    with open(log) as f:
        test_results = load_results(structuredlog.read_logs(f))

    manifest = metadata.load_manifest(test_root)
    if rev_old is not None:
        change_data = load_change_data(rev_old, rev_new)
    else:
        change_data = {}

    update_expected(manifest, change_data, test_results)
예제 #3
0
def queue_tests(test_root, test_types, run_info, include_filters):
    test_ids = []
    tests_by_type = defaultdict(Queue)

    test_manifest = metadata.load_manifest(test_root)

    for test_type in test_types:
        for test in test_manifest.itertype(test_type):
            queue_test = False
            if include_filters:
                for filter_str in include_filters:
                    if test.url.startswith(filter_str):
                        queue_test = True
            else:
                queue_test = True
            if queue_test:
                test = test_.from_manifest(test)
                if not test.disabled(run_info):
                    tests_by_type[test_type].put(test)
                    test_ids.append(test.id)

    return test_ids, tests_by_type