1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 04:18:58 +00:00

fw/target/manager: Do no finalize target if not instantiated

In the case of an error occurring during target initialization do not
try and check for disconnecting upon finalizing.
This commit is contained in:
Marc Bonnici 2018-09-20 10:58:40 +01:00
parent ccaca3d6d8
commit 7d01258bce

View File

@ -73,6 +73,8 @@ class TargetManager(object):
self.rpm = RuntimeParameterManager(self.target)
def finalize(self):
if not self.target:
return
if self.disconnect or isinstance(self.target.platform, Gem5SimulationPlatform):
self.logger.info('Disconnecting from the device')
with signal.wrap('TARGET_DISCONNECT'):