extend timeout for pppoe test
This commit is contained in:
parent
0896c9c1d3
commit
b898364719
1 changed files with 2 additions and 3 deletions
|
@ -6,11 +6,10 @@ expect "login:" { send "root\r\n" }
|
||||||
expect "#"
|
expect "#"
|
||||||
set FINISHED 0
|
set FINISHED 0
|
||||||
set EXIT "1"
|
set EXIT "1"
|
||||||
while { $FINISHED < 5 } {
|
while { $FINISHED < 10 } {
|
||||||
send "ip address show dev ppp0 | grep ppp0\r\n"
|
send "ip address show dev ppp0 | grep ppp0\r\n"
|
||||||
|
|
||||||
expect {
|
expect {
|
||||||
"192.168.100.1" { set FINISHED 10; set EXIT 0; }
|
"192.168.100.1" { set FINISHED 20; set EXIT 0; }
|
||||||
"can't find device" { send_user "waiting ..." ; send "\r\n"; sleep 3 }
|
"can't find device" { send_user "waiting ..." ; send "\r\n"; sleep 3 }
|
||||||
"DOWN" { send_user "waiting ..." ; send "\r\n"; sleep 2 }
|
"DOWN" { send_user "waiting ..." ; send "\r\n"; sleep 2 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue