aboutgitcodebugslistschat
path: root/test/two_guests/basic
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-21 20:10:23 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-21 20:10:23 +0200
commit2d75a3d71ce3237a24aad748e8e1db05dcc44866 (patch)
treeb73eeb6453c8dbc34c245fd3f4d5683aa3e94c5f /test/two_guests/basic
parente934da3c8199e96624bc22abdcca71e953cf27f7 (diff)
downloadpasst-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar.gz
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar.bz2
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar.lz
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar.xz
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.tar.zst
passt-2d75a3d71ce3237a24aad748e8e1db05dcc44866.zip
test/two_guests: Fix sleep command for DAD
An inline comment prefixed by a space doesn't mean the space is dropped, and sleep(1) will get a blank in its argument. Move the comment on its own line. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/two_guests/basic')
-rw-r--r--test/two_guests/basic3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/two_guests/basic b/test/two_guests/basic
index c97a836..d23b6e9 100644
--- a/test/two_guests/basic
+++ b/test/two_guests/basic
@@ -32,7 +32,8 @@ check [ "__ADDR1__" = "__HOST_ADDR__" ]
check [ "__ADDR2__" = "__HOST_ADDR__" ]
test DHCPv6: addresses
-sleep 2 # Link is up now: DAD
+# Link is up now, wait for DAD to complete
+sleep 2
guest1 /sbin/dhclient -6 __IFNAME1__
guest2 /sbin/dhclient -6 __IFNAME1__
g1out ADDR1_6 ip -j -6 ad sh|jq -rM '.[] | select(.ifname == "__IFNAME1__").addr_info[] | select(.prefixlen == 128).local'