[ovs-dev] [PATCH 18/21] ofproto.at: Portability improvement

YAMAMOTO Takashi yamamoto at midokura.com
Mon Oct 19 04:29:09 UTC 2015


== is a bash dialect.  Use = instead.

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

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 [[]]' \
-- 
2.3.8 (Apple Git-58)




More information about the dev mailing list