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
8 # http://www.apache.org/licenses/LICENSE-2.0
10 import functest.core.feature as base
11 from functest.utils.constants import CONST
14 class SdnVpnTests(base.BashFeature):
16 def __init__(self, **kwargs):
17 repo = CONST.__getattribute__('dir_repo_sdnvpn')
18 dir_sfc_functest = '{}/sdnvpn/test/functest'.format(repo)
19 kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest
20 super(SdnVpnTests, self).__init__(**kwargs)