From 9d83fa426c6aaa531c567a202d80d7b0707d2e13 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 8 May 2017 17:24:30 +0200 Subject: [PATCH] tests: allow to use exit_cleanly as test method TestMultiOut can now also just check for clean exit Signed-off-by: Christian Franke --- tests/helpers/python/frrtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5