mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
framework/workload: Calm pylint
This commit is contained in:
parent
69f52f3359
commit
feabecd19d
@ -101,6 +101,7 @@ class Workload(TargetedPlugin):
|
|||||||
This is also the place to perform any on-device checks prior to
|
This is also the place to perform any on-device checks prior to
|
||||||
attempting to execute the workload.
|
attempting to execute the workload.
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unused-argument
|
||||||
if self.requires_network and not self.target.is_network_connected():
|
if self.requires_network and not self.target.is_network_connected():
|
||||||
raise WorkloadError(
|
raise WorkloadError(
|
||||||
'Workload "{}" requires internet. Target does not appear '
|
'Workload "{}" requires internet. Target does not appear '
|
||||||
@ -139,6 +140,7 @@ class Workload(TargetedPlugin):
|
|||||||
|
|
||||||
def deploy_assets(self, context):
|
def deploy_assets(self, context):
|
||||||
""" Deploy assets if available to the target """
|
""" Deploy assets if available to the target """
|
||||||
|
# pylint: disable=unused-argument
|
||||||
if not self.asset_directory:
|
if not self.asset_directory:
|
||||||
self.asset_directory = self.target.working_directory
|
self.asset_directory = self.target.working_directory
|
||||||
else:
|
else:
|
||||||
@ -151,6 +153,7 @@ class Workload(TargetedPlugin):
|
|||||||
|
|
||||||
def remove_assets(self, context):
|
def remove_assets(self, context):
|
||||||
""" Cleanup assets deployed to the target """
|
""" Cleanup assets deployed to the target """
|
||||||
|
# pylint: disable=unused-argument
|
||||||
for asset in self.deployed_assets:
|
for asset in self.deployed_assets:
|
||||||
self.target.remove(asset)
|
self.target.remove(asset)
|
||||||
|
|
||||||
@ -745,6 +748,7 @@ class PackageHandler(object):
|
|||||||
self.target.execute('pm clear {}'.format(self.apk_info.package))
|
self.target.execute('pm clear {}'.format(self.apk_info.package))
|
||||||
|
|
||||||
def install_apk(self, context):
|
def install_apk(self, context):
|
||||||
|
# pylint: disable=unused-argument
|
||||||
output = self.target.install_apk(self.apk_file, self.install_timeout,
|
output = self.target.install_apk(self.apk_file, self.install_timeout,
|
||||||
replace=True, allow_downgrade=True)
|
replace=True, allow_downgrade=True)
|
||||||
if 'Failure' in output:
|
if 'Failure' in output:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user