mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +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
|
# 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):
|
def execute(self, command, timeout=None, check_exit_code=True, as_root=False):
|
||||||
return self.conn.execute(command, timeout, check_exit_code, as_root)
|
return self.conn.execute(command, timeout, check_exit_code, as_root)
|
||||||
|
|
||||||
@ -558,6 +554,10 @@ class Target(object):
|
|||||||
|
|
||||||
# internal methods
|
# 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):
|
def _extract_archive(self, path, cmd, dest=None):
|
||||||
cmd = '{} ' + cmd # busybox
|
cmd = '{} ' + cmd # busybox
|
||||||
if dest:
|
if dest:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user