From 4bfba331701f32f8b5a2d601dce045b9d32f1d08 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 26 Sep 2022 12:11:44 +0100 Subject: [PATCH] handle case when ppp0 eists but is down --- tests/pppoe/getaddress.expect | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pppoe/getaddress.expect b/tests/pppoe/getaddress.expect index 6cacb78..bb88202 100644 --- a/tests/pppoe/getaddress.expect +++ b/tests/pppoe/getaddress.expect @@ -12,6 +12,7 @@ while { $FINISHED < 5 } { expect { "192.168.100.1" { set FINISHED 10; set EXIT 0; } "can't find device" { send_user "waiting ..." ; send "\r\n"; sleep 3 } + "DOWN" { send_user "waiting ..." ; send "\r\n"; sleep 2 } } set FINISHED [ expr $FINISHED + 1 ] }