mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 09:17:51 +00: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:
parent
328e0ade4b
commit
7a8f98720d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user