From ec7b65fd791ad9e5089bcf76afcfc3164422b74c Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sun, 30 Jan 2022 03:09:46 +0100 Subject: 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 --- test/distro/debian | 1 + 1 file changed, 1 insertion(+) (limited to 'test/distro/debian') diff --git a/test/distro/debian b/test/distro/debian index 6ba0b10..c506bf7 100644 --- a/test/distro/debian +++ b/test/distro/debian @@ -26,6 +26,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 -- cgit v1.2.3