summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-26 14:41:00 +0700
committerhathach <[email protected]>2026-04-26 14:41:00 +0700
commit053cac96ab841b3f01053a0c8606afb7297aeccb (patch)
tree903b9a86c99d30f48f9ab810fc45209b5328544c /test
parentdd107171535c20272e80e2b11e3bc2a368f531d3 (diff)
hil: bump net iface enum timeout to 30s for net_lwip_webserver
The CI HIL host repeatedly fails the test with "USB net iface enx... did not come up with 192.168.7.x within 15s" — USB enumeration + DHCP serve takes longer there than on the local rig. Bump just this test's timeout to 30s; other tests stay on the 15s global ENUM_TIMEOUT. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Diffstat (limited to 'test')
-rwxr-xr-xtest/hil/hil_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 5f262184e..f39019431 100755
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -1064,7 +1064,9 @@ def test_device_net_lwip_webserver(board):
iperf_port = 5001
# Wait for the host to get an IPv4 address in the device's subnet (DHCP served by the device).
- deadline = time.time() + ENUM_TIMEOUT
+ # USB enum + DHCP serve can take longer on the CI HIL hardware than on local — give it 30s.
+ iface_timeout = 30
+ deadline = time.time() + iface_timeout
host_ip = None
while time.time() < deadline:
ret = subprocess.run(['ip', '-o', '-4', 'addr', 'show', iface],
@@ -1074,7 +1076,7 @@ def test_device_net_lwip_webserver(board):
host_ip = m.group(1)
break
time.sleep(0.5)
- assert host_ip, f'USB net iface {iface} did not come up with 192.168.7.x within {ENUM_TIMEOUT}s'
+ assert host_ip, f'USB net iface {iface} did not come up with 192.168.7.x within {iface_timeout}s'
# Poll the iperf TCP port until the device is accepting. The net stack comes up a bit
# after DHCP completes; iperf server binding isn't instantaneous after reflash.