Added agent cli
@@ -258,7 +258,9 @@ def newCLI(looper, basedir, cliClass=TestCli,
config=None,
partition: str=None,
unique_name=None,
- logFileName=None):
+ logFileName=None,
+ name=None,
+ agentCreator=None):
if partition:
recorder = Recorder(partition)
else:
@@ -266,6 +268,20 @@ def newCLI(looper, basedir, cliClass=TestCli,
mockOutput = MockOutput(recorder=recorder)
recorder.write("~ be {}\n".format(unique_name))
otags = config.log_override_tags['cli'] if config else None
+ if name is not None and agentCreator is not None:
+ newcli = cliClass(looper=looper,
+ basedirpath=basedir,
+ nodeReg=None,
+ cliNodeReg=None,
+ output=mockOutput,
+ debug=True,
+ config=config,
+ unique_name=unique_name,
+ override_tags=otags,
+ logFileName=logFileName,
+ name=name,
+ agentCreator=agentCreator)
+ else:
newcli = cliClass(looper=looper,
basedirpath=basedir,
nodeReg=None,
