Add case_name as args in all features
[functest.git] / functest / opnfv_tests / features / odl_sfc.py
1 #!/usr/bin/python
2 #
3 # Copyright (c) 2016 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 import functest.core.feature as base
11
12
13 class OpenDaylightSFC(base.Feature):
14
15     def __init__(self, case_name='functest-odl-sfc'):
16         super(OpenDaylightSFC, self).__init__(project='sfc',
17                                               case_name=case_name,
18                                               repo='dir_repo_sfc')
19         dir_sfc_functest = '{}/sfc/tests/functest'.format(self.repo)
20         self.cmd = 'cd %s && python ./run_tests.py' % dir_sfc_functest