aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/features/doctor.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/features/doctor.py')
-rw-r--r--functest/opnfv_tests/features/doctor.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/functest/opnfv_tests/features/doctor.py b/functest/opnfv_tests/features/doctor.py
index fd181a04..0e39248d 100644
--- a/functest/opnfv_tests/features/doctor.py
+++ b/functest/opnfv_tests/features/doctor.py
@@ -14,11 +14,11 @@
#
#
import functest.core.feature as base
+from functest.utils.constants import CONST
-class Doctor(base.Feature):
- def __init__(self, case_name='doctor-notification'):
- super(Doctor, self).__init__(project='doctor',
- case_name=case_name,
- repo='dir_repo_doctor')
- self.cmd = 'cd %s/tests && ./run.sh' % self.repo
+class Doctor(base.BashFeature):
+ def __init__(self, **kwargs):
+ repo = CONST.__getattribute__('dir_repo_doctor')
+ kwargs["cmd"] = 'cd %s/tests && ./run.sh' % repo
+ super(Doctor, self).__init__(**kwargs)