mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
Merge pull request #478 from opensourcerouting/test-extension
tests: allow to use exit_cleanly as test method
This commit is contained in:
commit
7a78dea34d
@ -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