#!/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_base as base
from sfc.tests.functest import run_tests


class OpenDaylightSFC(base.FeatureBase):

    def __init__(self):
        super(OpenDaylightSFC, self).__init__(project='sfc',
                                              case='functest-odl-sfc',
                                              repo='dir_repo_sfc')

    def execute(self):
        return run_tests.main()

@@ -326,49 +326,8 @@
 ase%0A
-from sfc.tests.functest import run_tests%0A
 %0A%0Acl
@@ -593,60 +593,144 @@
 c')%0A
-%0A
+    
     d
-ef execute(self):%0A        return run_tests.main()
+ir_sfc_functest = '%7B%7D/sfc/tests/functest'.format(self.repo)%0A        self.cmd = 'cd %25s && python ./run_tests.py' %25 dir_sfc_functest
 %0A

Revert "Make SFC test a python call to main()"