mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 11:52:36 +01:00
framework/execution: fix TargetManager termination
- Make sure TargetManager.finalize() actually gets called at the end of the run. - Overrule the "diconnect" parameter behavior for gem5 and make sure it always disconnects. This necessary for stats to be generated properly.
This commit is contained in:
@@ -56,8 +56,8 @@ class TargetManager(object):
|
||||
self.rpm = RuntimeParameterManager(self.target)
|
||||
|
||||
def finalize(self):
|
||||
self.logger.info('Disconnecting from the device')
|
||||
if self.disconnect:
|
||||
if self.disconnect or isinstance(self.target.platform, Gem5SimulationPlatform):
|
||||
self.logger.info('Disconnecting from the device')
|
||||
with signal.wrap('TARGET_DISCONNECT'):
|
||||
self.target.disconnect()
|
||||
|
||||
|
Reference in New Issue
Block a user