[ovs-dev] [PATCH] testsuite: make a sed command more portable

YAMAMOTO Takashi yamt at mwd.biglobe.ne.jp
Tue Jun 4 00:17:34 UTC 2013

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 at mwd.biglobe.ne.jp>
 tests/ofproto-dpif.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 37c531b..88ab76a 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],
 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

More information about the dev mailing list