mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: Wait up to 60 seconds for client to connect to DUT in provisioning test
This commit is contained in:
parent
45fff86e05
commit
05ef08b1d5
@ -55,7 +55,7 @@ def test_examples_provisioning_softap(env, extra_data):
|
|||||||
ctrl = wifi_tools.wpa_cli(iface, reset_on_exit=True)
|
ctrl = wifi_tools.wpa_cli(iface, reset_on_exit=True)
|
||||||
print("Connecting to DUT SoftAP...")
|
print("Connecting to DUT SoftAP...")
|
||||||
ip = ctrl.connect(ssid, password)
|
ip = ctrl.connect(ssid, password)
|
||||||
got_ip = dut1.expect(re.compile(r"DHCP server assigned IP to a station, IP is: (\d+.\d+.\d+.\d+)"), timeout=45)[0]
|
got_ip = dut1.expect(re.compile(r"DHCP server assigned IP to a station, IP is: (\d+.\d+.\d+.\d+)"), timeout=60)[0]
|
||||||
if ip != got_ip:
|
if ip != got_ip:
|
||||||
raise RuntimeError("SoftAP connected to another host! " + ip + "!=" + got_ip)
|
raise RuntimeError("SoftAP connected to another host! " + ip + "!=" + got_ip)
|
||||||
print("Connected to DUT SoftAP")
|
print("Connected to DUT SoftAP")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user