From b8983647196886fd797ff73d456af83debaa6e21 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 20 Jun 2023 23:39:46 +0100 Subject: [PATCH] extend timeout for pppoe test --- tests/pppoe/getaddress.expect | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/pppoe/getaddress.expect b/tests/pppoe/getaddress.expect index 2cc1211..3f0fc4c 100644 --- a/tests/pppoe/getaddress.expect +++ b/tests/pppoe/getaddress.expect @@ -6,11 +6,10 @@ expect "login:" { send "root\r\n" } expect "#" set FINISHED 0 set EXIT "1" -while { $FINISHED < 5 } { +while { $FINISHED < 10 } { send "ip address show dev ppp0 | grep ppp0\r\n" - 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 } "DOWN" { send_user "waiting ..." ; send "\r\n"; sleep 2 } }