Lines Matching refs:res

140 def command_callback(cmd, head, need_del, res=""):
144 assert "FileTransfer finish" in res
148 assert "FileTransfer finish" in res
151 check_install(head, res)
169 res = run_command_stdout("{}{}{}{}{}".format("shell \"[ ", file_type, " ", remote_file,
171 assert 'yes' in res
179 print("check_file_send success ", res)
191 res = run_command_stdout("{}{}{}".format("attrib ", local_file, ""))
194 assert '-' not in res
199 print("check_file_recv success ", res)
205 res = run_command_stdout("{}{}{}".format("dir/ad ", file_path, " >nul 2>nul && echo dir || echo file"), '')
206 return res
211 res = get_win_file_type(file_path)
212 if "dir" in res:
214 if "file" in res:
218 def check_install(head, res):
220 print(res)
221 if "msg:install bundle successfully." not in res:
224 res = run_command_stdout("shell \"bm dump -a\"", head)
225 if HAP_ONE['PACKAGE_NAME'] in res:
233 res = run_command_stdout("shell \"whoami\"", head)
234 print("check_root res: ", res)
235 assert 'root' in res
239 res = run_command_stdout("shell \"whoami\"", head)
240 print("check_user res: ", res)
241 assert 'shell' in res
242 return 'shell' in res
246 res = run_command_stdout(BASIC_COMMANDS['component'][0], head)
247 devs = res.split()
254 res = run_command_stdout(TCP_CONN['tconn'])
255 print(res)
256 if "Connect OK" in res:
286 res = subprocess.Popen(command,
289 res = res[0].decode(dec)
291 command_callback(cmd, head, need_del, res)
292 return res
356 res = run_command_stdout("{}{}{}{}".format("file send ", send_path, " ", mix_path(recv_path, str(i))))
357 print(res)
362 res = run_command_stdout("{}{}{}{}".format("file recv ", remote_path, " ", mix_path(recv_path, str(i))))
363 print(res)