From: Ben Pfaff <blp@nicira.com>
Date: Thu, 5 Jan 2012 00:12:08 +0000 (-0800)
Subject: tests: Fix bug in NetFlow test case.
X-Git-Tag: sliver-openvswitch-0.1-1~513
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c4dba11a6395722c6522eee7d238bb4fc6685e7d;p=sliver-openvswitch.git

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 <moment> and something like
1234...2345 (where the two numbers differ) with <range>, but in fact it
accidentally changed, e.g., 10...1016 into <moment>16.  This commit fixes
that.

This fixes only a test case, not the code under test.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Bug #9057.
---

diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 3ce102933..58d3d233b 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 <moment>/
+s/time \([0-9]*\)\.\.\.\1\b/time <moment>/
 s/time [0-9]*\.\.\.[0-9]*/time <range>/
 ' netflow.log]], [0],
   [header: v5, seq 0, engine 2,1