diff options
author | 2017-07-12 12:07:46 +0000 | |
---|---|---|
committer | 2017-07-12 13:20:51 +0000 | |
commit | 3668645d06669e0abe44535ee3a4450a0b83709c (patch) | |
tree | cf87a89261546156d64d1cbe6943efade9687983 /sdnvpn/test/functest/run_tests.py | |
parent | 74db571092ab8650d8059430ea4e4033d2269527 (diff) |
Adding log gathering
Change-Id: I0f13e5aa8aea25e549c9ffede63085a86153cdba
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Diffstat (limited to 'sdnvpn/test/functest/run_tests.py')
-rw-r--r-- | sdnvpn/test/functest/run_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sdnvpn/test/functest/run_tests.py b/sdnvpn/test/functest/run_tests.py index a861a47..1bffe67 100644 --- a/sdnvpn/test/functest/run_tests.py +++ b/sdnvpn/test/functest/run_tests.py @@ -19,7 +19,7 @@ import yaml import functest.utils.functest_utils as ft_utils from sdnvpn.lib import config as sdnvpn_config - +from sdnvpn.lib.gather_logs import gather_logs logger = logging.getLogger('sdnvpn-run-tests') @@ -93,6 +93,12 @@ def main(report=False): push_results( test_name_db, start_time, end_time, status, details) + try: + gather_logs('overall') + except Exception as ex: + logger.error(('Something went wrong in the Log gathering.' + 'Ex: Trace: %s') + % ex, traceback.format_exc()) if overall_status == "FAIL": sys.exit(-1) |