1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

commands/revent: Fix missing target initialization

In commit 8da911 the initialization of the target was split into a
separate method of the TargetManger. Ensure that we call the relevant
 method after creating the manager.
This commit is contained in:
Marc Bonnici 2018-07-19 11:13:25 +01:00 committed by setrofim
parent 0e69a9808d
commit fbfd81caeb

View File

@ -120,6 +120,7 @@ class RecordCommand(Command):
outdir = os.getcwd()
self.tm = TargetManager(device, device_config, outdir)
self.tm.initialize()
self.target = self.tm.target
self.revent_recorder = ReventRecorder(self.target)
self.revent_recorder.deploy()
@ -261,6 +262,7 @@ class ReplayCommand(Command):
device_config = state.run_config.device_config or {}
target_manager = TargetManager(device, device_config, None)
target_manager.initialize()
self.target = target_manager.target
revent_file = self.target.path.join(self.target.working_directory,
os.path.split(args.recording)[1])