From patchwork Tue Jul 5 09:35:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi YAMAMOTO X-Patchwork-Id: 644672 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3rkJl32Tyzz9sBl for ; Tue, 5 Jul 2016 19:39:59 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id F1ED61089F; Tue, 5 Jul 2016 02:39:57 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 30E7C10778 for ; Tue, 5 Jul 2016 02:39:57 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id 8A20C42052A for ; Tue, 5 Jul 2016 03:39:56 -0600 (MDT) X-ASG-Debug-ID: 1467711595-09eadd3a093f5160001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar5.cudamail.com with ESMTP id 6hvMNuKoBYgbCyAE (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 05 Jul 2016 03:39:55 -0600 (MDT) X-Barracuda-Envelope-From: yamamoto@ovn.org X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO slow1-d.mail.gandi.net) (217.70.178.86) by mx3-pf2.cudamail.com with SMTP; 5 Jul 2016 09:39:55 -0000 Received-SPF: pass (mx3-pf2.cudamail.com: SPF record at ovn.org designates 217.70.178.86 as permitted sender) X-Barracuda-Apparent-Source-IP: 217.70.178.86 X-Barracuda-RBL-IP: 217.70.178.86 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 34C6E576483; Tue, 5 Jul 2016 11:35:20 +0200 (CEST) X-Originating-IP: 153.201.79.36 Received: from giraffe.local.net (p280036-ipngn12401marunouchi.tokyo.ocn.ne.jp [153.201.79.36]) (Authenticated sender: yamamoto@ovn.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 0329441C0D3; Tue, 5 Jul 2016 11:35:16 +0200 (CEST) X-CudaMail-Envelope-Sender: yamamoto@ovn.org From: YAMAMOTO Takashi To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V2-704002145 X-CudaMail-DTE: 070516 X-CudaMail-Originating-IP: 217.70.178.86 Date: Tue, 5 Jul 2016 18:35:04 +0900 X-ASG-Orig-Subj: [##CM-V2-704002145##][PATCH] ovn.at: Use = instead of == for test Message-Id: <1467711304-26430-1-git-send-email-yamamoto@ovn.org> X-Mailer: git-send-email 2.5.4 (Apple Git-61) X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1467711595 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Cc: YAMAMOTO Takashi Subject: [ovs-dev] [PATCH] ovn.at: Use = instead of == for test X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" == is a GNU extension which might not be available. Signed-off-by: YAMAMOTO Takashi Acked-By: Ryan Moats Acked-by: Ben Pfaff --- tests/ovn.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index feb68d3..3436417 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -839,7 +839,7 @@ for is in 1 2 3; do if test $d != $s && test $s != 11; then acl2=$d; else acl2=; fi if test $d != $s && test $d != 33; then acl3=$d; else acl3=; fi - if test $d == $s || (test $js == 1 && test $d == 33); then + if test $d = $s || (test $js = 1 && test $d = 33); then # Source of 11, 21, or 31 and dest of 33 should be dropped # due to the 4th ACL that uses address_set(set1). acl4= @@ -1998,7 +1998,7 @@ test_arp() { as $hv ovs-appctl netdev-dummy/receive vif$inport $request #as $hv ovs-appctl ofproto/trace br-int in_port=$inport $request if test $drop != 1; then - if test X$reply_ha == X; then + if test X$reply_ha = X; then # Expect to receive the broadcast ARP on the other logical switch ports # if no reply is expected. local i j