From 730962af4e7ed452bd7b3e538b55ce2e73a1e5e7 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Mon, 7 Apr 2025 12:40:50 +0200 Subject: [PATCH] test/librbd/test_notify.py: force line-buffered output "master" and "slave" invocations are intended to run in parallel and coordinate between themselves. Ensure that their respective output is properly timestamped and ordered in teuthology.log file. Fixes: https://tracker.ceph.com/issues/70831 Signed-off-by: Ilya Dryomov (cherry picked from commit 49dbabcecec7c458a6d2ddfbd8e14a6ec419b953) --- src/test/librbd/test_notify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/librbd/test_notify.py b/src/test/librbd/test_notify.py index 4e929d74fa465..bef988808aef0 100755 --- a/src/test/librbd/test_notify.py +++ b/src/test/librbd/test_notify.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 +import functools import os import sys import time @@ -13,6 +14,8 @@ from rbd import (RBD, RBD_FEATURE_FAST_DIFF, RBD_FLAG_OBJECT_MAP_INVALID) +print = functools.partial(print, flush=True) + POOL_NAME='rbd' PARENT_IMG_NAME='test_notify_parent' CLONE_IMG_NAME='test_notify_clone' -- 2.39.5