liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fd9f5cb45f37b67d826aae240ba78d9314defe81
parent b3bdb5a9c4a8a43fd3d2dd6e4e1a83b2b87cb13d
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 12 Apr 2025 23:42:07 +0100

disambiguate expected string

"{ lan }" appears only in output
"lan" appears also in the command line we send

Diffstat:
Mtests/pppoe/getaddress.expect | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pppoe/getaddress.expect b/tests/pppoe/getaddress.expect @@ -24,7 +24,7 @@ expect "#READY#" set timeout 30 send "nft list set ip table-ip lan || touch /non/existent\n" expect { - "lan" { puts "lan found" } + "{ \"lan\" }" { puts "lan found" } "{ }" { puts "missing ifname"; exit 1 } "No such file or directory" { exit 1 } } @@ -36,7 +36,7 @@ expect "#READY#" # appears and you just have to make this sleep longer. Ew, yes send "sleep 10; nft list set ip table-ip wan || touch /non/existent\n" expect { - "ppp0" { puts "ppp0 found " } + "{ \"ppp0\" }" { puts "ppp0 found " } "{ }" { puts "missing ifname"; exit 1 } "No such file or directory" { exit 1 } timeout { exit 1 }