f5ecf73340b7575766cb9076ebb3e6899f88b609
[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 from functest.utils.constants import CONST
12
13
14 class OpenDaylightSFC(base.BashFeature):
15
16     def __init__(self, **kwargs):
17         repo = CONST.__getattribute__('dir_repo_sfc')
18         dir_sfc_functest = '{}/sfc/tests/functest'.format(repo)
19         kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest
20         super(OpenDaylightSFC, self).__init__(**kwargs)