1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 12:28:44 +00:00

revent fixes

- do not attempt to replay setup if a setup recording has not been
  provided (perviously, setup was mandatory).
- update the apk initialization to the correct method inside the record
  command.
This commit is contained in:
Sergei Trofimov 2017-09-22 17:35:14 +01:00
parent 335ed8198c
commit 0934037e1b
2 changed files with 4 additions and 3 deletions

View File

@ -178,7 +178,7 @@ class RecordCommand(Command):
self.logger.info('Deploying {}'.format(args.workload)) self.logger.info('Deploying {}'.format(args.workload))
workload = pluginloader.get_workload(args.workload, self.target) workload = pluginloader.get_workload(args.workload, self.target)
workload.apk.init_resources(context.resolver) workload.apk.initialize(context)
workload.apk.setup(context) workload.apk.setup(context)
sleep(workload.loading_time) sleep(workload.loading_time)

View File

@ -388,8 +388,9 @@ class ReventGUI(object):
def setup(self): def setup(self):
self._check_revent_files() self._check_revent_files()
self.revent_recorder.replay(self.on_target_setup_revent, if self.revent_setup_file:
timeout=self.setup_timeout) self.revent_recorder.replay(self.on_target_setup_revent,
timeout=self.setup_timeout)
def run(self): def run(self):
msg = 'Replaying {}' msg = 'Replaying {}'