Exemplo n.º 1
0
def flush_gcov(result):
    if json_parser.get_response_code(result) != 0:
        print("* Gcov flush failed, check WBT option")
    elif json_parser.get_data_code(result) != 0:
        print("* Gcov flush failed, check gcov option")
    else:
        print("* Flush gcov completed")
Exemplo n.º 2
0
def get_file_size(arrayId, fd):
    out = cli.send_request("wbt mfs_get_file_size --fd " + str(fd) +
                           " --array " + TEST_SETUP_POS.get_arrayname(arrayId))
    if json_parser.get_response_code(out) != 0:
        return -1
    else:
        return json_parser.get_data_code(out)
Exemplo n.º 3
0
def flush_gcov():
    out = cli.send_request("wbt flush_gcov")
    if json_parser.get_response_code(out) != 0:
        TEST_LOG.print_err("* Gcov flush failed, check WBT option")
    elif json_parser.get_data_code(out) != 0:
        TEST_LOG.print_info("* Gcov flush failed, check gcov option")
    else:
        TEST_LOG.print_info("* Flush gcov completed")
Exemplo n.º 4
0
def get_file_size(fd):
    out = cli.send_request("wbt mfs_get_file_size --fd " + str(fd))
    if json_parser.get_response_code(out) != 0:
        return -1
    else:
        return json_parser.get_data_code(out)