1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

AndroidTarget: move _execute_util to internal methods.

This commit is contained in:
Sergei Trofimov 2017-05-12 11:48:19 +01:00
parent 97a89970d0
commit 8b2ac8d29d

View File

@ -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: