blob: 10a97e926408eb80e896c78eed7743ec2d381296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/python
#
# Copyright (c) 2016 All rights reserved
# This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
import functest.core.feature as base
from functest.utils.constants import CONST
class SdnVpnTests(base.BashFeature):
def __init__(self, **kwargs):
repo = CONST.__getattribute__('dir_repo_sdnvpn')
dir_sfc_functest = '{}/sdnvpn/test/functest'.format(repo)
kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest
super(SdnVpnTests, self).__init__(**kwargs)
|