tests: allow to use exit_cleanly as test method

TestMultiOut can now also just check for clean exit

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
Christian Franke 2017-05-08 17:24:30 +02:00
parent af95eb8755
commit 9d83fa426c

View File

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