mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
commands/revent: Fix revent for non android based workloads
Previously recording an revent workload would assume an android based revent workload with an apk. Now only deploy apk if present for workload.
This commit is contained in:
parent
45738dfffe
commit
6308f99b9d
@ -184,9 +184,11 @@ class RecordCommand(Command):
|
||||
|
||||
self.logger.info('Deploying {}'.format(args.workload))
|
||||
workload = pluginloader.get_workload(args.workload, self.target)
|
||||
workload.apk.initialize(context)
|
||||
workload.apk.setup(context)
|
||||
sleep(workload.loading_time)
|
||||
# Setup apk if android workload
|
||||
if hasattr(workload, 'apk'):
|
||||
workload.apk.initialize(context)
|
||||
workload.apk.setup(context)
|
||||
sleep(workload.loading_time)
|
||||
|
||||
output_path = os.path.join(workload.dependencies_directory,
|
||||
'revent_files')
|
||||
|
Loading…
x
Reference in New Issue
Block a user