mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-21 15:55:58 +01: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:
@ -184,9 +184,11 @@ 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.initialize(context)
|
# Setup apk if android workload
|
||||||
workload.apk.setup(context)
|
if hasattr(workload, 'apk'):
|
||||||
sleep(workload.loading_time)
|
workload.apk.initialize(context)
|
||||||
|
workload.apk.setup(context)
|
||||||
|
sleep(workload.loading_time)
|
||||||
|
|
||||||
output_path = os.path.join(workload.dependencies_directory,
|
output_path = os.path.join(workload.dependencies_directory,
|
||||||
'revent_files')
|
'revent_files')
|
||||||
|
Reference in New Issue
Block a user