mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +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:
parent
ccaca3d6d8
commit
7d01258bce
@ -73,6 +73,8 @@ class TargetManager(object):
|
|||||||
self.rpm = RuntimeParameterManager(self.target)
|
self.rpm = RuntimeParameterManager(self.target)
|
||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
|
if not self.target:
|
||||||
|
return
|
||||||
if self.disconnect or isinstance(self.target.platform, Gem5SimulationPlatform):
|
if self.disconnect or isinstance(self.target.platform, Gem5SimulationPlatform):
|
||||||
self.logger.info('Disconnecting from the device')
|
self.logger.info('Disconnecting from the device')
|
||||||
with signal.wrap('TARGET_DISCONNECT'):
|
with signal.wrap('TARGET_DISCONNECT'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user