Reported-at: 
https://mail.openvswitch.org/pipermail/ovs-dev/2022-September/397558.html
Reported-by: Han Zhou <[email protected]>
Signed-off-by: Dumitru Ceara <[email protected]>
---
Note: this is a branch-22.03 specific commit in order to avoid conflicts
when cherry picking 8f841ecbe28e ("tests: Factor out reset_pcap_file()
helper.").
---
 tests/ovn.at | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/ovn.at b/tests/ovn.at
index 226d8b082..7ee1b3110 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -23070,6 +23070,17 @@ check_packets() {
     $at_diff exp rcv >/dev/null
 }
 
+reset_pcap_file() {
+    local iface=$1
+    local pcap_file=$2
+    check rm -f dummy-*.pcap
+    check ovs-vsctl -- set Interface $iface options:tx_pcap=dummy-tx.pcap \
+options:rxq_pcap=dummy-rx.pcap
+    check rm -f ${pcap_file}*.pcap
+    check ovs-vsctl -- set Interface $iface 
options:tx_pcap=${pcap_file}-tx.pcap \
+options:rxq_pcap=${pcap_file}-rx.pcap
+}
+
 ovn_init_ic_db
 ovn_start az1
 ovn_start az2
-- 
2.31.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to