tests: Fix bug in NetFlow test case.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Jan 2012 00:12:08 +0000 (16:12 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Jan 2012 17:11:54 +0000 (09:11 -0800)
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.

tests/ofproto-dpif.at

index 3ce1029..58d3d23 100644 (file)
@@ -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