From d2bdb82ffd4ad628f6e9fce8fc8fb7456f62e1ab Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 6 Aug 2020 11:47:12 -0400 Subject: [PATCH] tests: stop daemons consistently in mem leak path When the topotest mem-leak reporting is enabled, use the same two-step daemon stop procedure that's used in the topogen.stop_topology path. Signed-off-by: Mark Stapp --- tests/topotests/lib/topogen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index efd5b90685..37b9715010 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -819,7 +819,9 @@ class TopoRouter(TopoGear): if memleak_file is None: return - self.stop() + self.stop(False, False) + self.stop(wait=True) + self.logger.info("running memory leak report") self.tgen.net[self.name].report_memory_leaks(memleak_file, testname) -- 2.39.5