Skip to content

Commit 003505d

Browse files
chrisswinchatt-armsaheerb
authored andcommitted
Store subprocess in fm_agent
1 parent 934682f commit 003505d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fm_agent/fm_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(self, model_name=None, model_config=None, logger=None, enable_gdbse
3737
self.fastmodel_name = model_name
3838
self.config_name = model_config
3939
self.enable_gdbserver = enable_gdbserver
40+
self.subprocess = None
4041

4142
#If logging not provided, use default log
4243
if logger:
@@ -132,7 +133,7 @@ def start_simulator(self, stream=sys.stdout):
132133
""" launch given fastmodel with configs """
133134
if check_import():
134135
import iris.debug
135-
proc, IRIS_port, outs = launch_FVP_IRIS(self.model_binary, self.model_config_file, self.model_options)
136+
self.subprocess, IRIS_port, outs = launch_FVP_IRIS(self.model_binary, self.model_config_file, self.model_options)
136137
if stream:
137138
print(outs, file=stream)
138139
self.model = iris.debug.NetworkModel('localhost',IRIS_port)
@@ -183,7 +184,7 @@ def reset_simulator(self):
183184
time.sleep(1)
184185
import iris.debug
185186

186-
proc, IRIS_port, outs = launch_FVP_IRIS(self.model_binary, self.model_config_file)
187+
self.subprocess, IRIS_port, outs = launch_FVP_IRIS(self.model_binary, self.model_config_file)
187188
if IRIS_port==0:
188189
print(outs)
189190
return False

0 commit comments

Comments
 (0)