mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
try except added in cv test manager
This commit is contained in:
@@ -395,12 +395,15 @@ class cv_test(Realm):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Of if test stopped for some reason and could not generate report.
|
# Of if test stopped for some reason and could not generate report.
|
||||||
if not self.get_is_running(instance_name):
|
try:
|
||||||
print("Detected test is not running.")
|
if not self.get_is_running(instance_name):
|
||||||
not_running += 1
|
print("Detected test is not running.")
|
||||||
if not_running > 5:
|
not_running += 1
|
||||||
break
|
if not_running > 5:
|
||||||
|
break
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.report_name = self.get_report_location(instance_name)
|
self.report_name = self.get_report_location(instance_name)
|
||||||
# Ensure test is closed and cleaned up
|
# Ensure test is closed and cleaned up
|
||||||
|
|||||||
Reference in New Issue
Block a user