From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Date: Tue, 4 Jun 2013 00:17:34 +0000 (+0900)
Subject: testsuite: make a sed command more portable
X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~174
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9f9b6465b4d5f7fccae33ee1266b8b43498db803;p=sliver-openvswitch.git

testsuite: make a sed command more portable

avoid using some GNU sed extensions, which are not available
eg. on NetBSD's /usr/bin/sed.

while there are other places these extenstions are used in the testsuite,
this instance is new and seems the only one currently being executed
for NetBSD.

Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
---

diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 37c531b8e..88ab76ac8 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -2202,7 +2202,7 @@ ADD_OF_PORTS([br0], 1, 2)
 ovs-appctl time/warp 10000
 
 AT_CHECK([ovs-ofctl -O openflow13 dump-ports br0], [0], [stdout])
-AT_CHECK([sed 's/=[[0-9]][[0-9]]\(\.[[0-9]]\{1,\}\)\{,1\}s/=?s/' stdout], [0],
+AT_CHECK([sed 's/=[[0-9]][[0-9]]\(\.[[0-9]][[0-9]]*\)\{0,1\}s/=?s/' stdout], [0],
 [dnl
 OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
   port  1: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0