diff options
Diffstat (limited to 'functest/ci/run_tests.py')
-rwxr-xr-x | functest/ci/run_tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index 722df14f..5155adc4 100755 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -269,10 +269,13 @@ class Runner(object): return self.overall_result -if __name__ == '__main__': +def main(): logging.config.fileConfig(pkg_resources.resource_filename( 'functest', 'ci/logging.ini')) parser = RunTestsParser() args = parser.parse_args(sys.argv[1:]) runner = Runner() - sys.exit(runner.main(**args).value) + return runner.main(**args).value + +if __name__ == '__main__': + sys.exit(main()) |