From patchwork Tue Aug 15 22:03:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Stringer X-Patchwork-Id: 801788 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xX62N1YgZz9sRm for ; Wed, 16 Aug 2017 08:04:12 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 33D46728; Tue, 15 Aug 2017 22:04:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8370849F for ; Tue, 15 Aug 2017 22:04:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id D2AFD447 for ; Tue, 15 Aug 2017 22:03:36 +0000 (UTC) X-Originating-IP: 208.91.1.34 Received: from carno.eng.vmware.com (unknown [208.91.1.34]) (Authenticated sender: joe@ovn.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 10628C5A4F for ; Wed, 16 Aug 2017 00:03:33 +0200 (CEST) From: Joe Stringer To: dev@openvswitch.org Date: Tue, 15 Aug 2017 15:03:25 -0700 Message-Id: <20170815220325.24358-1-joe@ovn.org> X-Mailer: git-send-email 2.13.3 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] tests: Put maximum timeout on netcat calls. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org 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 --- tests/atlocal.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/atlocal.in b/tests/atlocal.in index 6a339f8fc312..6ac32fbb3d73 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -154,7 +154,8 @@ find_command nc if nc --version 2>&1 | grep -q nmap.org; then NC_EOF_OPT="--send-only" else - NC_EOF_OPT="-q 1" + # BSD netcat + NC_EOF_OPT="-q 1 -w 5" fi # Set HAVE_TCPDUMP