]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: stop daemons consistently in mem leak path 6873/head
authorMark Stapp <mjs@voltanet.io>
Thu, 6 Aug 2020 15:47:12 +0000 (11:47 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 6 Aug 2020 15:47:12 +0000 (11:47 -0400)
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>
tests/topotests/lib/topogen.py

index efd5b90685964118ad8d4fdc6f981961dbd2be45..37b97150106581ed520fcf99edd97e1490414f1b 100644 (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)