[ovs-dev] [PATCH 2/7] tests/ofproto-dpif.at: Portability improvement
YAMAMOTO Takashi
yamamoto at valinux.co.jp
Fri Dec 20 10:31:01 UTC 2013
The output of "wc -l" have leading spaces on some platforms.
(NetBSD, OSX, ...)
This fixes a test failure introduced by commit e79a6c83.
("ofproto: Handle flow installation and eviction in upcall.")
Signed-off-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
---
tests/ofproto-dpif.at | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 9cd2393..e813147 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -2105,13 +2105,9 @@ sleep 1
OVS_VSWITCHD_STOP
ovs-appctl -t test-netflow exit
-AT_CHECK([grep "192.168.0.1 > 192.168.0.2, if 1 > 65535, 1 pkts, 60 bytes, ICMP 8:0" netflow.log | wc -l], [0], [dnl
-1
-], [ignore])
+AT_CHECK([test `grep "192.168.0.1 > 192.168.0.2, if 1 > 65535, 1 pkts, 60 bytes, ICMP 8:0" netflow.log | wc -l` -eq 1])
-AT_CHECK([grep "192.168.0.1 > 192.168.0.2, if 1 > 2, 1 pkts, 60 bytes, ICMP 8:0" netflow.log | wc -l], [0], [dnl
-1
-], [ignore])
+AT_CHECK([test `grep "192.168.0.1 > 192.168.0.2, if 1 > 2, 1 pkts, 60 bytes, ICMP 8:0" netflow.log | wc -l` -eq 1])
combined=`grep "192.168.0.2 > 192.168.0.1, if 2 > 1, 2 pkts, 120 bytes, ICMP 0:0" netflow.log | wc -l`
separate=`grep "192.168.0.2 > 192.168.0.1, if 2 > 1, 1 pkts, 60 bytes, ICMP 0:0" netflow.log | wc -l`
--
1.8.3.1
More information about the dev
mailing list