This was causing test script execution to hang forever on Ubuntu Zesty.
Make sure it times out within 5 seconds, so at least it will fail out
properly.

Signed-off-by: Joe Stringer <[email protected]>
---
 tests/atlocal.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/atlocal.in b/tests/atlocal.in
index 6a339f8fc312..ba143d30f1d7 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -152,9 +152,9 @@ find_command nc
 
 # Determine correct netcat option to quit on stdin EOF
 if nc --version 2>&1 | grep -q nmap.org; then
-    NC_EOF_OPT="--send-only"
+    NC_EOF_OPT="--send-only -w 5"
 else
-    NC_EOF_OPT="-q 1"
+    NC_EOF_OPT="-q 1 -w 5"
 fi
 
 # Set HAVE_TCPDUMP
-- 
2.13.3

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to