All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
Date: Mon, 23 Nov 2026 06:34:42 +0200	[thread overview]
Message-ID: <20261123043443.1686524-1-eva.kurchatova@virtuozzo.com> (raw)

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

             reply	other threads:[~2026-11-23  4:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  4:34 Eva Kurchatova [this message]
2026-11-23  4:39 ` no-reply
2026-11-30 15:59 ` Konstantin Khorenko
2026-11-30 15:59 ` Konstantin Khorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123043443.1686524-1-eva.kurchatova@virtuozzo.com \
    --to=eva.kurchatova@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=vladimir.riabchun@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.