All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
@ 2026-11-23  4:34 Eva Kurchatova
  2026-11-23  4:39 ` no-reply
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eva Kurchatova @ 2026-11-23  4:34 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

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@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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-30 16:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  4:34 [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line Eva Kurchatova
2026-11-23  4:39 ` no-reply
2026-11-30 15:59 ` Konstantin Khorenko
2026-11-30 15:59 ` Konstantin Khorenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.