def kill_pos(): write_log("killing pos...") pos.kill_pos() write_log("pos has been killed")
sys.path.append("../device/") import json_parser import pos import cli import test_result import SCAN_DEV_BASIC import array_device def set_result(detail): code = json_parser.get_response_code(detail) result = "fail" if code == 2522: result = "pass" with open(__file__ + ".result", "w") as result_file: result_file.write(result + " (" + str(code) + ")" + "\n" + detail) def execute(): SCAN_DEV_BASIC.execute() out = cli.list_array_device("TEMPARRAY") return out if __name__ == "__main__": test_result.clear_result(__file__) out = execute() set_result(out) pos.kill_pos()
def kill_pos(): write_log("killing pos...") fio_util.dispose() pos.kill_pos() write_log("pos has been killed")