From d5820bef80ea4bdb871380dbfe41db12290fc5f8 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 21 Mar 2017 15:17:46 +0100 Subject: Make SFC test a python call to main() Instead of python -> bash -> python, call the SFC test using the execute() method that is inherited from FeatureBase and it's a bash call by default. With this change, we call the SFC test using main() of run_tests.py of SFC repo and will have real time output. Change-Id: I6d59821e603c88697a82b95c5626c5b703c11026 Signed-off-by: jose.lausuch Signed-off-by: George Paraskevopoulos --- functest/opnfv_tests/features/odl_sfc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functest/opnfv_tests/features/odl_sfc.py b/functest/opnfv_tests/features/odl_sfc.py index 1956c9c8e..431cd47e4 100644 --- a/functest/opnfv_tests/features/odl_sfc.py +++ b/functest/opnfv_tests/features/odl_sfc.py @@ -8,6 +8,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base as base +from sfc.tests.functest import run_tests class OpenDaylightSFC(base.FeatureBase): @@ -16,5 +17,6 @@ class OpenDaylightSFC(base.FeatureBase): super(OpenDaylightSFC, self).__init__(project='sfc', case='functest-odl-sfc', repo='dir_repo_sfc') - dir_sfc_functest = '{}/sfc/tests/functest'.format(self.repo) - self.cmd = 'cd %s && python ./run_tests.py' % dir_sfc_functest + + def execute(self): + return run_tests.main() -- cgit 1.2.3-korg