From e84692970bbaffab808e4d4f21d19812dd566578 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 12 Jul 2017 13:03:04 -0300 Subject: [PATCH] topogen: fix topogen memleak activation When memleak_path is present in the configuration file it means that it is activated. --- tests/topotests/lib/topogen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5