From f09bb9f3a1878d373756ebb99193ab7032d0e7ca Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 8 Mar 2022 17:20:52 +0000 Subject: [PATCH] Add a sleep when starting the bgpd daemons so that there is less chance for a connection collision. --- regress/usr.sbin/bgpd/integrationtests/maxprefix.sh | 5 +++-- regress/usr.sbin/bgpd/integrationtests/md5.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/regress/usr.sbin/bgpd/integrationtests/maxprefix.sh b/regress/usr.sbin/bgpd/integrationtests/maxprefix.sh index 4a9c275774f..5901f481d35 100644 --- a/regress/usr.sbin/bgpd/integrationtests/maxprefix.sh +++ b/regress/usr.sbin/bgpd/integrationtests/maxprefix.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: maxprefix.sh,v 1.1 2020/01/22 02:01:11 claudio Exp $ +# $OpenBSD: maxprefix.sh,v 1.2 2022/03/08 17:20:52 claudio Exp $ set -e @@ -67,10 +67,11 @@ ifconfig lo${RDOMAIN2} inet 127.0.0.1/8 echo run bgpds route -T ${RDOMAIN1} exec ${BGPD} \ -v -f ${BGPDCONFIGDIR}/bgpd.maxprefix.rdomain1.conf +sleep 1 route -T ${RDOMAIN2} exec ${BGPD} \ -v -f ${BGPDCONFIGDIR}/bgpd.maxprefix.rdomain2.conf -sleep 3 +sleep 2 echo test1: add two networks route -T ${RDOMAIN1} exec bgpctl network add 10.12.58.0/24 diff --git a/regress/usr.sbin/bgpd/integrationtests/md5.sh b/regress/usr.sbin/bgpd/integrationtests/md5.sh index 20256680fc5..3ebaa309496 100644 --- a/regress/usr.sbin/bgpd/integrationtests/md5.sh +++ b/regress/usr.sbin/bgpd/integrationtests/md5.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: md5.sh,v 1.4 2019/08/06 07:31:53 claudio Exp $ +# $OpenBSD: md5.sh,v 1.5 2022/03/08 17:20:52 claudio Exp $ set -e @@ -67,10 +67,11 @@ ifconfig lo${RDOMAIN2} inet 127.0.0.1/8 echo run bgpds route -T ${RDOMAIN1} exec ${BGPD} \ -v -f ${BGPDCONFIGDIR}/bgpd.md5.rdomain1.conf +sleep 1 route -T ${RDOMAIN2} exec ${BGPD} \ -v -f ${BGPDCONFIGDIR}/bgpd.md5.rdomain2.conf -sleep 3 +sleep 2 echo test1 route -T ${RDOMAIN1} exec bgpctl sh sum | \ -- 2.20.1