1
0
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:
Sergei Trofimov
2016-04-05 11:36:39 +01:00
parent 20861f0ee4
commit 391b0b01fc
3 changed files with 2 additions and 1 deletions

View File

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