From 678609610f4ccbcb19438cbce5d84bd376010596 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 30 Jun 2017 06:24:11 +0200 Subject: Define console_scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only prepare_env.py and run_tests.py remain executable to avoid breaking the gate. As soon as the jenkins jobs are updated to run them from $PATH, tox will be updated to protect against chmod a+x py files. Dockerfile will be simplified as well. Change-Id: Iac1a7ceb6b344e800177226ea39919826f6d3735 Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/sdn/onos/sfc/sfc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) mode change 100755 => 100644 functest/opnfv_tests/sdn/onos/sfc/sfc.py (limited to 'functest/opnfv_tests/sdn/onos') diff --git a/functest/opnfv_tests/sdn/onos/sfc/sfc.py b/functest/opnfv_tests/sdn/onos/sfc/sfc.py old mode 100755 new mode 100644 index a2dd7e9a..2bb9082c --- a/functest/opnfv_tests/sdn/onos/sfc/sfc.py +++ b/functest/opnfv_tests/sdn/onos/sfc/sfc.py @@ -165,14 +165,10 @@ def PushDB(status, info): def main(): """Script to Test the SFC scenarios in ONOS.""" + logging.basicConfig() PreConfig() CreateNodes() ConfigSfc() VerifySfcTraffic() CleanUp() PushDB("PASS", "") - - -if __name__ == '__main__': - logging.basicConfig() - main() -- cgit 1.2.3-korg