1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

framework/workload: Move deployment of gui into initialize

We only need to deploy the gui once, therefore move the `deploy` method
call into `initialize` the corresponding `remove` method is already in
`finalize`.
This commit is contained in:
Marc Bonnici 2018-05-22 16:34:00 +01:00 committed by setrofim
parent 3efff81a5c
commit c3a01f61af

View File

@ -286,10 +286,10 @@ class ApkUIWorkload(ApkWorkload):
@once_per_instance
def initialize(self, context):
super(ApkUIWorkload, self).initialize(context)
self.gui.deploy()
def setup(self, context):
super(ApkUIWorkload, self).setup(context)
self.gui.deploy()
self.gui.setup()
def run(self, context):
@ -367,10 +367,10 @@ class UIWorkload(Workload):
@once_per_instance
def initialize(self, context):
super(UIWorkload, self).initialize(context)
self.gui.deploy()
def setup(self, context):
super(UIWorkload, self).setup(context)
self.gui.deploy()
self.gui.setup()
def run(self, context):