def build_result_table(data):
    args = build_args()
    table = [result_headers]
    for (i, t) in enumerate(data):
        for attr in zip(prop, t):
            setattr(args, *attr)
        data = []
        for bot in bots:
            args.robot = bot
            data.append((bot, main(args)))
        table.append(build_test_row(data, i))
    return '\\hline\n'.join(table)
def build_result_table(data):
    args = build_args()
    table = [result_headers]
    for (i, t) in enumerate(data):
        for attr in zip(prop, t):
            setattr(args, *attr)
        data = []
        for bot in bots:
            args.robot = bot
            data.append((bot, main(args)))
        table.append(build_test_row(data, i))
    return '\\hline\n'.join(table)