diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-03-08 17:20:53 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-03-08 17:20:53 +0000 |
commit | 272ec4e37eeb969ba3ebbcfa076ec3091ed372c7 (patch) | |
tree | d73e1cf36eef835981e7d812eec6ad414aae4c23 /regress | |
parent | 93d693b3242821d66b5d24eee5945288147d34d4 (diff) |
Add a sleep when starting the bgpd daemons so that there is less chance
for a connection collision.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/bgpd/integrationtests/maxprefix.sh | 5 | ||||
-rw-r--r-- | 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 | \ |