aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core/feature.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/core/feature.py')
-rw-r--r--functest/core/feature.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/functest/core/feature.py b/functest/core/feature.py
index 5149f80f..9f20a426 100644
--- a/functest/core/feature.py
+++ b/functest/core/feature.py
@@ -8,13 +8,13 @@ from functest.utils.constants import CONST
class Feature(base.TestCase):
- def __init__(self, project='functest', case_name='', repo='', cmd=''):
- super(Feature, self).__init__(case_name=case_name)
- self.project_name = project
- self.cmd = cmd
+ def __init__(self, **kwargs):
+ super(Feature, self).__init__(**kwargs)
+ self.cmd = kwargs.get('cmd', '')
+ repo = kwargs.get('repo', '')
self.repo = CONST.__getattribute__(repo)
self.result_file = self.get_result_file()
- self.logger = ft_logger.Logger(project).getLogger()
+ self.logger = ft_logger.Logger(self.project_name).getLogger()
def run(self, **kwargs):
self.prepare()