diff options
author | Sridhar Rao <sridhar.rao@spirent.com> | 2020-12-01 11:49:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-12-01 11:49:12 +0000 |
commit | 90ef48d4342a983c7733b8c21bb902d1dab2685a (patch) | |
tree | 9496de569be5cac8445106174b4e47b171c9b9b0 /tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py | |
parent | 249ac8fcbb138c0aee22234aa6738083c62ad23d (diff) | |
parent | d7a033d9e40eedee5e0413cb2f0898fc82364f58 (diff) |
Merge "Tools: Improve Stability."opnfv-10.0.0stable/jerma
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py')
-rw-r--r-- | tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py index 2f0cb0b4..8089ef42 100644 --- a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py +++ b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py @@ -691,6 +691,11 @@ def main(): lab_server_resultsdb = stc.get( "system1.project.TestResultSetting", "CurrentResultFileName") + if not lab_server_resultsdb or 'Results' not in lab_server_resultsdb: + _LOGGER.info("Failed to find results.") + stc.end_session() + return + if args.verbose: _LOGGER.debug("The lab server results database is %s", lab_server_resultsdb) @@ -811,6 +816,7 @@ def main(): args.results_dir, args.csv_results_file_prefix, resultsdict) except RuntimeError as e: + stc.end_session() _LOGGER.error(e) if args.verbose: |