testsuite: make a sed command more portable
authorYAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Tue, 4 Jun 2013 00:17:34 +0000 (09:17 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Jun 2013 19:39:23 +0000 (12:39 -0700)
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>
tests/ofproto-dpif.at

index 37c531b..88ab76a 100644 (file)
@@ -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