mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
AndroidTarget: move _execute_util to internal methods.
This commit is contained in:
parent
97a89970d0
commit
8b2ac8d29d
@ -283,10 +283,6 @@ class Target(object):
|
||||
|
||||
# execution
|
||||
|
||||
def _execute_util(self, command, timeout=None, check_exit_code=True, as_root=False):
|
||||
command = '{} {}'.format(self.shutils, command)
|
||||
return self.conn.execute(command, timeout, check_exit_code, as_root)
|
||||
|
||||
def execute(self, command, timeout=None, check_exit_code=True, as_root=False):
|
||||
return self.conn.execute(command, timeout, check_exit_code, as_root)
|
||||
|
||||
@ -558,6 +554,10 @@ class Target(object):
|
||||
|
||||
# internal methods
|
||||
|
||||
def _execute_util(self, command, timeout=None, check_exit_code=True, as_root=False):
|
||||
command = '{} {}'.format(self.shutils, command)
|
||||
return self.conn.execute(command, timeout, check_exit_code, as_root)
|
||||
|
||||
def _extract_archive(self, path, cmd, dest=None):
|
||||
cmd = '{} ' + cmd # busybox
|
||||
if dest:
|
||||
|
Loading…
x
Reference in New Issue
Block a user