[ovs-dev] [PATCH] ovn.at: Replace not portable '\+' in sed with '*'.
Ilya Maximets
i.maximets at samsung.com
Tue Dec 25 17:53:09 UTC 2018
'*' has different semantics in common case, but it's not
important here.
This fixes test on FreBSD.
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
tests/ovn.at | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/ovn.at b/tests/ovn.at
index 3b3df40e4..28856b4fd 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -8915,7 +8915,7 @@ as hv3 reset_pcap_file hv3-vif1 hv3/vif1
sleep 2
# Take note of how many packets arrived on the VLAN switch before generating
# further traffic
-n_packets=`as hv1 ovs-ofctl dump-flows br-int table=65 | grep "priority=100,reg15=0x1,metadata=0x2" | grep actions=clone | sed 's/.*n_packets=\([[0-9]]\+\),.*/\1/'`
+n_packets=`as hv1 ovs-ofctl dump-flows br-int table=65 | grep "priority=100,reg15=0x1,metadata=0x2" | grep actions=clone | sed 's/.*n_packets=\([[0-9]]*\),.*/\1/'`
as hv1 ovs-appctl netdev-dummy/receive hv1-vif1 $packet
sleep 2
--
2.17.1
More information about the dev
mailing list