From: Christian Franke Date: Mon, 8 May 2017 15:24:30 +0000 (+0200) Subject: tests: allow to use exit_cleanly as test method X-Git-Tag: reindent-master-before~188^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9d83fa426c6aaa531c567a202d80d7b0707d2e13;p=matthieu%2Ffrr.git tests: allow to use exit_cleanly as test method TestMultiOut can now also just check for clean exit Signed-off-by: Christian Franke --- diff --git a/tests/helpers/python/frrtest.py b/tests/helpers/python/frrtest.py index a7ef1c56b7..da9e447fc0 100644 --- a/tests/helpers/python/frrtest.py +++ b/tests/helpers/python/frrtest.py @@ -87,7 +87,8 @@ class _TestMultiOut(object): def _add_test(cls, method, *args, **kwargs): if 'tests' not in dir(cls): setattr(cls,'tests',[]) - cls._add_test(cls._exit_cleanly) + if method is not cls._exit_cleanly: + cls._add_test(cls._exit_cleanly) def matchfunction(self): method(self, *args, **kwargs)