mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
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:
parent
af95eb8755
commit
9d83fa426c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user