[ovs-dev,18/21] ofproto.at: Portability improvement
diff mbox

Message ID 1445228952-22445-18-git-send-email-yamamoto@midokura.com
State Awaiting Upstream
Headers show

Commit Message

Takashi Yamamoto Oct. 19, 2015, 4:29 a.m. UTC
== is a bash dialect.  Use = instead.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
---
 tests/ofproto.at | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ben Pfaff Nov. 10, 2015, 4:31 a.m. UTC | #1
On Mon, Oct 19, 2015 at 01:29:09PM +0900, YAMAMOTO Takashi wrote:
> == is a bash dialect.  Use = instead.
> 
> Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>

Acked-by: Ben Pfaff <blp@ovn.org>

Patch
diff mbox

diff --git a/tests/ofproto.at b/tests/ofproto.at
index 4a94f86..e1cb430 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -3642,8 +3642,8 @@  set_and_check_poorly_specified_ofports () {
 	AT_CHECK([test "$p1" = "$1" || test "$p2" = "$1"])
 	# The other port number must be different (already tested above).
     else
-        AT_CHECK([test "$1" = '[[]]' || test "$p1" == "$1"])
-        AT_CHECK([test "$2" = '[[]]' || test "$p2" == "$2"])
+        AT_CHECK([test "$1" = '[[]]' || test "$p1" = "$1"])
+        AT_CHECK([test "$2" = '[[]]' || test "$p2" = "$2"])
     fi
 }
 for pre in      '1 2' '[[]] 2' '1 [[]]' '[[]] [[]]' '2 1' '[[]] 1' '2 [[]]' \