add retries to wlan test

This commit is contained in:
Daniel Barlow 2023-12-10 18:35:14 +00:00
parent 4ddce6e926
commit 6c8b2bbb83

View file

@ -7,8 +7,8 @@ set FINISHED 0
set EXIT "1" set EXIT "1"
send "ls -l /run/uncaught-logs/current\r\n" send "ls -l /run/uncaught-logs/current\r\n"
expect "#" expect "#"
while { $FINISHED < 10 } { while { $FINISHED < 20 } {
send "grep AP-ENABLED /run/uncaught-logs/current || echo not\r\n" send "date && grep AP-ENABLED /run/uncaught-logs/current || echo not\r\n"
expect { expect {
"wlan0: AP-ENABLED" { set FINISHED 10; set EXIT 0; } "wlan0: AP-ENABLED" { set FINISHED 10; set EXIT 0; }