aboutgitcodebugslistschat
path: root/test/distro/ubuntu
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-01-30 03:09:46 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-01-30 03:09:46 +0100
commitec7b65fd791ad9e5089bcf76afcfc3164422b74c (patch)
tree84da885e413ce147280da9831eca45367e1faf47 /test/distro/ubuntu
parent292c1855531df7baab095ef608cda7240984340b (diff)
downloadpasst-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar.gz
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar.bz2
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar.lz
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar.xz
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.tar.zst
passt-ec7b65fd791ad9e5089bcf76afcfc3164422b74c.zip
test/distro: Avoid race between display of ns_msg and netcat exiting
The shell might report 'nc -6 -l -p 9999 > /tmp/ns_msg' as done even after the subsequent 'echo' is done: wait one second before reading out /tmp/ns_msg, to ensure we read that instead of the "Done" message. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/distro/ubuntu')
-rw-r--r--test/distro/ubuntu1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/distro/ubuntu b/test/distro/ubuntu
index fcd3861..6013122 100644
--- a/test/distro/ubuntu
+++ b/test/distro/ubuntu
@@ -25,6 +25,7 @@ sleep 2
host echo "from_ns" | nc -q0 ::1 10000
sleep 2
host echo
+sleep 1
hout NS_MSG cat /tmp/ns_msg
check [ __NS_MSG__ = "from_init" ]
hostb exit