From 226dfd837c760f9126b5a4312e88b0dee836b2ab Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 Dec 2013 19:31:01 +0900 Subject: [PATCH] tests/ofproto-dpif.at: Portability improvement 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 Signed-off-by: Ben Pfaff --- 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 9cd23938d..e81314750 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` -- 2.43.0