From: Ben Pfaff Date: Thu, 5 Jan 2012 00:12:08 +0000 (-0800) Subject: tests: Fix bug in NetFlow test case. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4dba11a6395722c6522eee7d238bb4fc6685e7d;p=openvswitch tests: Fix bug in NetFlow test case. The "sed" command here is intended to replace something like 1234...1234 (where the two numbers are the same) with and something like 1234...2345 (where the two numbers differ) with , but in fact it accidentally changed, e.g., 10...1016 into 16. This commit fixes that. This fixes only a test case, not the code under test. Signed-off-by: Ben Pfaff Bug #9057. --- diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 3ce10293..58d3d233 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -823,7 +823,7 @@ ovs-appctl -t test-netflow exit AT_CHECK([[sed -e 's/, uptime [0-9]*// s/, now [0-9.]*// -s/time \([0-9]*\)\.\.\.\1/time / +s/time \([0-9]*\)\.\.\.\1\b/time / s/time [0-9]*\.\.\.[0-9]*/time / ' netflow.log]], [0], [header: v5, seq 0, engine 2,1