[ovs-dev] [PATCHv2 1/2] tests: Put maximum timeout on netcat calls.

Flavio Leitner fbl at sysclose.org
Tue Aug 15 23:45:39 UTC 2017


On Tue, 15 Aug 2017 16:15:54 -0700
Joe Stringer <joe at ovn.org> wrote:

> 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 <joe at ovn.org>
> ---
>  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


make check-system-userspace TESTSUITEFLAGS="35" 
## ------------------------------ ##
## openvswitch 2.8.90 test suite. ##
## ------------------------------ ##
 35: conntrack - ICMP related                        ok

## ------------- ##
## Test results. ##
## ------------- ##

1 test was successful.

in parallel:
ps auwx | grep nc | grep 'send-'
root      2379  0.0  0.0   9680  2508 pts/25   S+   20:42   0:00 bash -c echo a | nc --send-only -w 5 -u 10.1.1.2 10000

Acked-by: Flavio Leitner <fbl at sysclose.org>

Thanks Joe
-- 
Flavio



More information about the dev mailing list