From 9815cc6597daa6f50a38a04579036e3eeb5c79a2 Mon Sep 17 00:00:00 2001 From: panageo2 Date: Tue, 25 Jul 2017 11:09:34 +0000 Subject: Refactor imports and invocation of main function In all testcases there are some inconcistencies of import statements. Additionally the main function of each testcase should be called through sys.exit(main()) JIRA: SDNVPN-173 Change-Id: I6fdf0dc6598ca4789b6de6b50d1b8b85a8de923c Signed-off-by: panageo2 --- sdnvpn/test/functest/testcase_9.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sdnvpn/test/functest/testcase_9.py') diff --git a/sdnvpn/test/functest/testcase_9.py b/sdnvpn/test/functest/testcase_9.py index 482ff48..053c02e 100644 --- a/sdnvpn/test/functest/testcase_9.py +++ b/sdnvpn/test/functest/testcase_9.py @@ -15,10 +15,10 @@ # - Verify that the OpenDaylight and gateway Quagga peer import argparse import logging +import sys -from sdnvpn.lib import utils as test_utils from sdnvpn.lib import config as sdnvpn_config - +from sdnvpn.lib import utils as test_utils from sdnvpn.lib.results import Results COMMON_CONFIG = sdnvpn_config.CommonConfig() @@ -75,4 +75,4 @@ def main(): if __name__ == '__main__': logging.basicConfig(level=logging.INFO) - main() + sys.exit(main()) -- cgit 1.2.3-korg