From: Rafael Zalamena Date: Wed, 12 Jul 2017 16:03:04 +0000 (-0300) Subject: topogen: fix topogen memleak activation X-Git-Tag: frr-7.1-dev~151^2~279 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e84692970bbaffab808e4d4f21d19812dd566578;p=mirror%2Ffrr.git topogen: fix topogen memleak activation When memleak_path is present in the configuration file it means that it is activated. --- diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index d2140b34ba..20f0eda39e 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -322,7 +322,8 @@ class Topogen(object): def is_memleak_enabled(self): "Returns `True` if memory leak report is enable, otherwise `False`." - memleak_file = os.environ.get('TOPOTESTS_CHECK_MEMLEAK') + memleak_file = (os.environ.get('TOPOTESTS_CHECK_MEMLEAK') or + self.config.get(self.CONFIG_SECTION, 'memleak_path')) if memleak_file is None: return False return True