diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-11-04 02:08:48 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-11-04 12:04:32 +0100 |
commit | 1401962a374b2ef8db44a3ef6a2ff2f68564d56f (patch) | |
tree | fbeb681d08f2a29e4b5b3d1798e9b89a8aa64d58 /test | |
parent | db74679f98296dacf2f162471c8bc558447c8f1a (diff) | |
download | passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar.gz passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar.bz2 passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar.lz passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar.xz passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.tar.zst passt-1401962a374b2ef8db44a3ef6a2ff2f68564d56f.zip |
test: Wait for network before starting passt in two_guests setup
As pasta now configures that target network namespace with
--config-net, we need to wait for addresses and routes to be actually
present. Just sending netlink messages doesn't mean this is done
synchronously.
A more elegant alternative, which probably makes sense regardless of
this test setup, would be to query, from pasta, addresses and routes
we added, and wait until they're there, before proceeding.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/lib/setup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/setup b/test/lib/setup index ab6d8d5..07d5056 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -208,6 +208,8 @@ setup_two_guests() { __ifname="$(context_run qemu_1 "ip -j link show | jq -rM '.[] | select(.link_type == \"ether\").ifname'")" + sleep 1 + __opts= [ ${PCAP} -eq 1 ] && __opts="${__opts} -p ${LOGDIR}/passt_1.pcap" [ ${DEBUG} -eq 1 ] && __opts="${__opts} -d" |