topotests: update file format and resolving id

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
This commit is contained in:
Hiroki Shirokura 2021-09-07 07:07:18 +00:00
parent e03862c34a
commit c84159a90a

View File

@ -773,7 +773,7 @@ class TopoRouter(TopoGear):
# Ensure pid file
with open(os.path.join(self.logdir, self.name + ".pid"), "w") as f:
f.write(str(tgen.net.hosts[self.name].pid))
f.write(str(self.net.pid) + "\n")
def __str__(self):
gear = super(TopoRouter, self).__str__()