From abbc78360207b77078a4c336e11fc33719b833b9 Mon Sep 17 00:00:00 2001 From: steiler Date: Wed, 30 Jun 2021 08:35:11 +0000 Subject: [PATCH] fixing test 01-smoke/03-bridges-and-host.robot --- tests/01-smoke/03-bridges-and-host.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/01-smoke/03-bridges-and-host.robot b/tests/01-smoke/03-bridges-and-host.robot index 31ff571ba..a08df3dbd 100644 --- a/tests/01-smoke/03-bridges-and-host.robot +++ b/tests/01-smoke/03-bridges-and-host.robot @@ -53,11 +53,11 @@ Verify management network is using user-specified bridge # show management interface info and cut the information about the ifindex of the remote veth # note that exec returns the info in the stderr stream, thus we use stderr to parse the ifindex ${rc} ${iface} = OperatingSystem.Run And Return Rc And Output - ... sudo containerlab --runtime ${runtime} exec -t ${CURDIR}/${lab-file} --label clab-node-name\=l1 --cmd "ip l show eth0" 2>&1 | cut -d ' ' -f5 | cut -d '@' -f2 | cut -c3- + ... sudo containerlab --runtime ${runtime} exec -t ${CURDIR}/${lab-file} --label clab-node-name\=l1 --cmd "ip l show eth0" 2>&1 | perl -lne '/.*[0-9]+: .*\\@if(.*:) .*/ && print $1' Log ${iface} Should Be Equal As Integers ${rc} 0 ${rc} ${res} = OperatingSystem.Run And Return Rc And Output - ... sudo ip l | grep ${iface} + ... sudo ip l | grep "${iface}" Log ${res} Should Contain ${res} master ${mgmt-br-name} state UP