1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 20:38:57 +00:00

pylint fixes.

This commit is contained in:
Sergei Trofimov 2016-10-17 11:02:41 +01:00
parent 8aa1bdc63d
commit 41b52178bb
3 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ class ApkWorkload(Workload):
# Ensure the apk is setup on the device # Ensure the apk is setup on the device
if self.force_install: if self.force_install:
self.force_install_apk(context, host_version, target_version) self.force_install_apk(context, host_version)
elif self.check_apk: elif self.check_apk:
self.prefer_host_apk(context, host_version, target_version) self.prefer_host_apk(context, host_version, target_version)
else: else:
@ -244,7 +244,7 @@ class ApkWorkload(Workload):
self.device.execute('am kill-all') # kill all *background* activities self.device.execute('am kill-all') # kill all *background* activities
self.device.clear_logcat() 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: if host_version is None:
raise ResourceError("force_install is 'True' but could not find APK on the host") raise ResourceError("force_install is 'True' but could not find APK on the host")
try: try:

View File

@ -59,7 +59,7 @@ class Skype(AndroidUxPerfWorkload):
please search online for specific instructions). 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 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 launch_main = False # overrides extended class
parameters = [ parameters = [

View File

@ -86,4 +86,4 @@ class Youtube(AndroidUxPerfWorkload):
self.uiauto_params['search_term'] = self.search_term.replace(' ', '0space0') self.uiauto_params['search_term'] = self.search_term.replace(' ', '0space0')
# Make sure search term is set if video source is 'search' # Make sure search term is set if video source is 'search'
if (self.video_source == 'search') and not self.search_term: 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'")