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")
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)
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")
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)