From 8a3233fe8ecc6f3f6af2b32613c09938d74e6053 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 12 Jun 2018 16:23:38 +0200 Subject: Bug fix: pass variables in the class constructor The Testcase class requires parameters in the constructor. We should pass them or otherwise we get an error: https://github.com/opnfv/functest-xtesting/blob/master/xtesting/core/testcase.py#L48 ERROR: TypeError: "__init__() got an unexpected keyword argument 'project_name'" Change-Id: I6f4b62b7ff201bf6878004e3fb452778c6b55f0e Signed-off-by: Manuel Buil --- sfc/tests/functest/run_sfc_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfc/tests/functest') diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py index 1c1dc455..6fe211bf 100644 --- a/sfc/tests/functest/run_sfc_tests.py +++ b/sfc/tests/functest/run_sfc_tests.py @@ -29,8 +29,8 @@ COMMON_CONFIG = sfc_config.CommonConfig() class SfcFunctest(testcase.TestCase): - def __init__(self): - super(SfcFunctest, self).__init__() + def __init__(self, **kwargs): + super(SfcFunctest, self).__init__(**kwargs) self.cleanup_flag = True if '--nocleanup' in sys.argv: -- cgit 1.2.3-korg