From 349d25fb43e6a132edd80ce9c44a3982867eb0b7 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 2 Mar 2018 09:04:15 +0100 Subject: Switch to Xtesting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It inherits from xtesting.core.feature [1]. [1] http://xtesting.readthedocs.io/en/latest/apidoc/xtesting.core.feature.html Change-Id: I3d64bce859de7132384b3cf0a6383348cc20b3b1 Signed-off-by: Cédric Ollivier --- requirements.txt | 1 + sdnvpn/test/functest/run_sdnvpn_tests.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2fce79e..19546d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,4 @@ python-heatclient>=1.6.1 # Apache-2.0 python-keystoneclient>=3.8.0 # Apache-2.0 python-neutronclient>=6.3.0 # Apache-2.0 python-novaclient>=9.0.0 # Apache-2.0 +xtesting # Apache-2.0 diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py index 4f391f2..41bd6a1 100644 --- a/sdnvpn/test/functest/run_sdnvpn_tests.py +++ b/sdnvpn/test/functest/run_sdnvpn_tests.py @@ -15,7 +15,7 @@ import sys import traceback import yaml -from functest.core import feature as base +from xtesting.core import feature from sdnvpn.lib import config as sdnvpn_config from sdnvpn.lib import openstack_utils as os_utils from sdnvpn.lib.gather_logs import gather_logs @@ -24,7 +24,7 @@ from sdnvpn.lib import utils as test_utils COMMON_CONFIG = sdnvpn_config.CommonConfig() -class SdnvpnFunctest(base.Feature): +class SdnvpnFunctest(feature.Feature): __logger = logging.getLogger(__name__) @@ -123,9 +123,9 @@ class SdnvpnFunctest(base.Feature): if overall_status == "PASS": self.result = 100 - return base.Feature.EX_OK + return feature.Feature.EX_OK - return base.Feature.EX_RUN_ERROR + return feature.Feature.EX_RUN_ERROR if __name__ == '__main__': -- cgit 1.2.3-korg