Merge remote-tracking branch 'origin/ci-fix-ue-attach' into integration_2025_w51 (!3824)
CI: adjust UE attach timeout handling This modification addresses an issue in the RFSim-5G 2x2 test where the UE often fails to attach within the initial 20s window. The timeout may cause the UE to restart, which leads to two UEs appearing in the gNB log. By increasing the initial timeout to 40s, we avoid unnecessary restarts.
This commit is contained in:
@@ -111,11 +111,10 @@ class Module_UE:
|
||||
return self._collectTrace(ctx)
|
||||
return None
|
||||
|
||||
def attach(self, attach_tries = 3, attach_timeout = 0):
|
||||
def attach(self, attach_tries = 3, attach_timeout = 40):
|
||||
ip = None
|
||||
while attach_tries > 0:
|
||||
self._command(self.cmd_dict["attach"])
|
||||
attach_timeout += 20
|
||||
timeout = attach_timeout
|
||||
logging.debug("Waiting for IP address to be assigned")
|
||||
ip = self.getIP(silent=False, reportNonZero=True)
|
||||
@@ -126,6 +125,7 @@ class Module_UE:
|
||||
if ip:
|
||||
break
|
||||
logging.warning(f"UE did not receive IP address after {attach_timeout} s, detaching")
|
||||
attach_timeout += 20
|
||||
attach_tries -= 1
|
||||
self._command(self.cmd_dict["detach"])
|
||||
time.sleep(5)
|
||||
|
||||
Reference in New Issue
Block a user