From c84159a90a21a2701da1d81f134b1c9d277336c4 Mon Sep 17 00:00:00 2001 From: Hiroki Shirokura Date: Tue, 7 Sep 2021 07:07:18 +0000 Subject: [PATCH] topotests: update file format and resolving id Signed-off-by: Hiroki Shirokura --- tests/topotests/lib/topogen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index a76ceaf16b..33e1388639 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -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__() -- 2.39.5