Exemple #1
0
def _load_tree(provider, run_id):
    if (provider, run_id) in _cached_tree:
        return _cached_tree[provider, run_id]

    run = _load_run(provider, run_id)
    tree = reorganize(run)

    _cached_tree[provider, run_id] = tree
    return tree
Exemple #2
0
def export_tempest_tree(stream, output_stream):
    converted = tempest_subunit.convert_stream(stream, strip_details=True)
    tree = tempest_subunit.reorganize(converted)
    json.dump(tree, output_stream, default=json_date_handler)
    output_stream.close()
Exemple #3
0
def export_tempest_tree(stream, output_stream):
    converted = tempest_subunit.convert_stream(stream, strip_details=True)
    tree = tempest_subunit.reorganize(converted)
    json.dump(tree, output_stream, default=json_date_handler)
    output_stream.close()