1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

list command: can now filter results by supported platform

Added -p option to the list command. This alows filtering results by
supported platforms, e.g.

	wa list workloads -p linux

Also adding missing supported_platforms attribute to various extensions.
If an extension does not have this attribute, the assumption is that it
is supported by all available platforms.
This commit is contained in:
Sergei Trofimov
2015-06-16 12:49:07 +01:00
parent 53de517488
commit e7fae25821
9 changed files with 23 additions and 1 deletions

View File

@@ -144,6 +144,7 @@ class ApkWorkload(Workload):
view = None
install_timeout = None
default_install_timeout = 300
supported_platforms = ['android']
parameters = [
Parameter('uninstall_apk', kind=boolean, default=False,
@@ -304,6 +305,8 @@ class ReventWorkload(Workload):
class AndroidUiAutoBenchmark(UiAutomatorWorkload, AndroidBenchmark):
supported_platforms = ['android']
def __init__(self, device, **kwargs):
UiAutomatorWorkload.__init__(self, device, **kwargs)
AndroidBenchmark.__init__(self, device, _call_super=False, **kwargs)
@@ -357,6 +360,7 @@ class GameWorkload(ApkWorkload, ReventWorkload):
view = 'SurfaceView'
install_timeout = 500
loading_time = 10
supported_platforms = ['android']
def __init__(self, device, **kwargs): # pylint: disable=W0613
ApkWorkload.__init__(self, device, **kwargs)