]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: allow to use exit_cleanly as test method
authorChristian Franke <chris@opensourcerouting.org>
Mon, 8 May 2017 15:24:30 +0000 (17:24 +0200)
committerChristian Franke <chris@opensourcerouting.org>
Mon, 8 May 2017 15:24:30 +0000 (17:24 +0200)
TestMultiOut can now also just check for clean exit

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
tests/helpers/python/frrtest.py

index a7ef1c56b7d2d8c30ba70d62877fd755eae1bad6..da9e447fc0a78929d6672f5cce701ddf2172bd16 100644 (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)