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 <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2020-08-06 11:47:12 -04:00
parent aaf0d79655
commit d2bdb82ffd

View File

@ -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)