mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
pylint fixes.
This commit is contained in:
parent
8aa1bdc63d
commit
41b52178bb
@ -229,7 +229,7 @@ class ApkWorkload(Workload):
|
||||
|
||||
# Ensure the apk is setup on the device
|
||||
if self.force_install:
|
||||
self.force_install_apk(context, host_version, target_version)
|
||||
self.force_install_apk(context, host_version)
|
||||
elif self.check_apk:
|
||||
self.prefer_host_apk(context, host_version, target_version)
|
||||
else:
|
||||
@ -244,7 +244,7 @@ class ApkWorkload(Workload):
|
||||
self.device.execute('am kill-all') # kill all *background* activities
|
||||
self.device.clear_logcat()
|
||||
|
||||
def force_install_apk(self, context, host_version, target_version):
|
||||
def force_install_apk(self, context, host_version):
|
||||
if host_version is None:
|
||||
raise ResourceError("force_install is 'True' but could not find APK on the host")
|
||||
try:
|
||||
|
@ -59,7 +59,7 @@ class Skype(AndroidUxPerfWorkload):
|
||||
please search online for specific instructions).
|
||||
https://support.skype.com/en/faq/FA3751/can-i-automatically-answer-all-my-calls-with-video-in-skype-for-windows-desktop
|
||||
'''
|
||||
|
||||
|
||||
launch_main = False # overrides extended class
|
||||
|
||||
parameters = [
|
||||
|
@ -86,4 +86,4 @@ class Youtube(AndroidUxPerfWorkload):
|
||||
self.uiauto_params['search_term'] = self.search_term.replace(' ', '0space0')
|
||||
# Make sure search term is set if video source is 'search'
|
||||
if (self.video_source == 'search') and not self.search_term:
|
||||
raise WorkloadError("Param 'search_term' must be specified when video source is 'search'")
|
||||
raise WorkloadError("Param 'search_term' must be specified when video source is 'search'")
|
||||
|
Loading…
x
Reference in New Issue
Block a user