aboutgitcodebugslistschat
path: root/test/lib/setup
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-22 16:44:45 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-23 02:46:24 +0200
commitcff565a1f66837efe2b94bba110bdcb26dda4b84 (patch)
treeb5c649b94547ec3d299927d5b9bb8bcfd8f6e157 /test/lib/setup
parent1134ce88fe562dc2e95780a54835fae9eb9070f0 (diff)
downloadpasst-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar.gz
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar.bz2
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar.lz
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar.xz
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.tar.zst
passt-cff565a1f66837efe2b94bba110bdcb26dda4b84.zip
test/lib: Wait for DHCPv4 before starting DHCPv6 client in two_guests test
I'm not sure why, but dhclient hangs otherwise. This reflects what we do in the passt_in_ns setup steps. Eventually, this whole block could go away if we let pasta configure this network namespace with --config-net. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/setup')
-rwxr-xr-xtest/lib/setup1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/setup b/test/lib/setup
index d7921bf..7e3f6c3 100755
--- a/test/lib/setup
+++ b/test/lib/setup
@@ -216,6 +216,7 @@ setup_two_guests() {
context_run qemu_1 "/sbin/dhclient -4 --no-pid ${__ifname}"
context_run qemu_2 "/sbin/dhclient -4 --no-pid ${__ifname}"
+ sleep 2
context_run qemu_1 "/sbin/dhclient -6 --no-pid ${__ifname}"
context_run qemu_2 "/sbin/dhclient -6 --no-pid ${__ifname}"