mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
debian: Make the autopkgtest more resilient (Closes: #980111)
The Debian autopkgtest would fail with new PAM introduced in Debian bullseye. Add a little loop to wait a little longer for the changes to propagate. Signed-off-by: Ondřej Surý <ondrej@sury.org>
This commit is contained in:
parent
223766ead4
commit
33ce95cad0
10
debian/tests/py-frr-reload
vendored
10
debian/tests/py-frr-reload
vendored
|
@ -22,7 +22,15 @@ sed -e '/^ip route 198.51.100.0\/28 127.0.0.1/ c ip route 198.51.100.64/28 127.0
|
||||||
|
|
||||||
service frr reload
|
service frr reload
|
||||||
|
|
||||||
vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1'
|
# wait for the new config to load
|
||||||
|
for __t in $(seq 1 10); do
|
||||||
|
if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1'; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep "$__t"
|
||||||
|
done
|
||||||
|
|
||||||
|
# fail if the old config is still loaded
|
||||||
if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'; then
|
if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue