mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
pylint/pep8 fixes
- android/workload: emoved an extra bank line between methods - trace_cmd: define member attribute inside __init__ - adb_shell: ignore pylint warning about too many branches in this case
This commit is contained in:
@@ -266,6 +266,7 @@ am_start_error = re.compile(r"Error: Activity class {[\w|.|/]*} does not exist")
|
||||
|
||||
|
||||
def adb_shell(device, command, timeout=None, check_exit_code=False, as_root=False): # NOQA
|
||||
# pylint: disable=too-many-branches
|
||||
_check_env()
|
||||
if as_root:
|
||||
command = 'echo \'{}\' | su'.format(escape_single_quotes(command))
|
||||
|
Reference in New Issue
Block a user