• Home
  • Raw
  • Download

Lines Matching refs:res

139 def command_callback(cmd, head, need_del, res=""):  argument
143 assert "FileTransfer finish" in res
147 assert "FileTransfer finish" in res
150 check_install(head, res)
168 res = run_command_stdout("{}{}{}{}{}".format("shell \"[ ", file_type, " ", remote_file,
170 assert 'yes' in res
178 print("check_file_send success ", res)
190 res = run_command_stdout("{}{}{}".format("attrib ", local_file, ""))
193 assert '-' not in res
198 print("check_file_recv success ", res)
204res = run_command_stdout("{}{}{}".format("dir/ad ", file_path, " >nul 2>nul && echo dir || echo fi…
205 return res
210 res = get_win_file_type(file_path)
211 if "dir" in res:
213 if "file" in res:
217 def check_install(head, res): argument
219 print(res)
220 if "msg:install bundle successfully." not in res:
223 res = run_command_stdout("shell \"bm dump -a\"", head)
224 if HAP_ONE['PACKAGE_NAME'] in res:
232 res = run_command_stdout("shell \"whoami\"", head)
233 print("check_root res: ", res)
234 assert 'root' in res
238 res = run_command_stdout("shell \"whoami\"", head)
239 print("check_user res: ", res)
240 assert 'shell' in res
241 return 'shell' in res
245 res = run_command_stdout(BASIC_COMMANDS['component'][0], head)
246 devs = res.split()
253 res = run_command_stdout(TCP_CONN['tconn'])
254 print(res)
255 if "Connect OK" in res:
285 res = subprocess.Popen(command,
288 res = res[0].decode(dec)
290 command_callback(cmd, head, need_del, res)
291 return res
355res = run_command_stdout("{}{}{}{}".format("file send ", send_path, " ", mix_path(recv_path, str(i…
356 print(res)
361res = run_command_stdout("{}{}{}{}".format("file recv ", remote_path, " ", mix_path(recv_path, str…
362 print(res)