1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

target: add wait_boot_complete to LinuxTarget

Add an empty implementation, as there is currently no generic way of
detecting boot completion for a random Linux system, and it is
considered to be "fully booted" as soon as it ready to accept
connections.
This commit is contained in:
Sergei Trofimov 2018-03-07 08:04:08 +00:00 committed by Marc Bonnici
parent 328e0ade4b
commit 7a8f98720d

View File

@ -841,6 +841,9 @@ class LinuxTarget(Target):
shell_prompt=shell_prompt, shell_prompt=shell_prompt,
conn_cls=conn_cls) conn_cls=conn_cls)
def wait_boot_complete(self, timeout=10):
pass
def kick_off(self, command, as_root=False): def kick_off(self, command, as_root=False):
command = 'sh -c "{}" 1>/dev/null 2>/dev/null &'.format(escape_double_quotes(command)) command = 'sh -c "{}" 1>/dev/null 2>/dev/null &'.format(escape_double_quotes(command))
return self.conn.execute(command, as_root=as_root) return self.conn.execute(command, as_root=as_root)