[Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Mon Nov 23 07:34:42 MSK 2026
openvswitch.sh waits for "listening on upcall packet handler" in the
output file of the ovs-dpctl.py upcall listener, but the line stays in
the stdout buffer until a MISS upcall, printed with flush=True, flushes
it. test_tunnel_metadata thus fails its 5 second wait unless some other
packet reaches the listener first.
Flush the line when it is printed.
Fixes: 30d772a03582 ("selftests: openvswitch: add psample test")
https://virtuozzo.atlassian.net/browse/VSTOR-156360
Feature: fix selftests
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
index ec59af9dcc32..c36df6d971ee 100644
--- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
+++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
@@ -1863,7 +1863,7 @@ class OvsPacket(GenericNetlinkSocket):
self.bind(OVS_PACKET_FAMILY, OvsPacket.ovs_packet_msg)
def upcall_handler(self, up=None):
- print("listening on upcall packet handler:", self.epid)
+ print("listening on upcall packet handler:", self.epid, flush=True)
while True:
try:
msgs = self.get()
--
2.56.1
More information about the Devel
mailing list