Commit b39cb4e5 authored by Raphael Defosseux's avatar Raphael Defosseux

CI: fix end of scenario when UE IP address retrieving fails during ping tests

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent de1dc5c9
...@@ -1134,7 +1134,7 @@ class SSHConnection(): ...@@ -1134,7 +1134,7 @@ class SSHConnection():
logging.debug('\u001B[1mUE (' + device_id + ') IP Address is ' + UE_IPAddress + '\u001B[0m') logging.debug('\u001B[1mUE (' + device_id + ') IP Address is ' + UE_IPAddress + '\u001B[0m')
for ueipaddress in self.UEIPAddresses: for ueipaddress in self.UEIPAddresses:
if ueipaddress == UE_IPAddress: if ueipaddress == UE_IPAddress:
logging.debug('\u001B[1mUE (' + device_id + ') IP Address ' + UE_IPAddress + 'has been existed!' + '\u001B[0m') logging.debug('\u001B[1mUE (' + device_id + ') IP Address ' + UE_IPAddress + ': has already been allocated to another device !' + '\u001B[0m')
ue_ip_status -= 1 ue_ip_status -= 1
continue continue
self.UEIPAddresses.append(UE_IPAddress) self.UEIPAddresses.append(UE_IPAddress)
...@@ -1323,6 +1323,7 @@ class SSHConnection(): ...@@ -1323,6 +1323,7 @@ class SSHConnection():
ueIpStatus = self.GetAllUEIPAddresses() ueIpStatus = self.GetAllUEIPAddresses()
if (ueIpStatus < 0): if (ueIpStatus < 0):
self.CreateHtmlTestRow(self.ping_args, 'KO', UE_IP_ADDRESS_ISSUE) self.CreateHtmlTestRow(self.ping_args, 'KO', UE_IP_ADDRESS_ISSUE)
self.AutoTerminateUEandeNB()
self.CreateHtmlTabFooter(False) self.CreateHtmlTabFooter(False)
sys.exit(1) sys.exit(1)
multi_jobs = [] multi_jobs = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment