Skip to content

Commit

Permalink
Merge branch 'master' into fix/reduce-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
HeJunchao100813 committed Aug 11, 2023
2 parents 8c89725 + 1747ae7 commit 4dd36da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/nuc_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ def infer_worker(target):
cmds, conn, case_dir, output_num = target.infer_queue.get()
separator = os.path.basename(case_dir) + target.separator
ret = ''

# exit from face_detect after rebooting
# target.s1.run_cmd('q')
target.s1.run_cmd('')

for cmd in cmds.split(';'):
ret = target.s1.run_cmd(cmd, separator)
target.logger.debug("ret = {0}".format(ret))
Expand All @@ -150,6 +155,10 @@ def infer_worker(target):
# reboot target when timeout
conn.sendall(f'infer timeout'.encode())
target.logger.error('reboot {0} for timeout'.format(target.name))

# reboot after login
target.s0.run_cmd('root')
target.s0.run_cmd('')
target.s0.run_cmd('reboot')
time.sleep(20)
else:
Expand Down

0 comments on commit 4dd36da

Please sign in to comment.