Skip to content

Commit 49dbabc

Browse files
committed
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 <[email protected]>
1 parent e0958b5 commit 49dbabc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/librbd/test_notify.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/python3
2+
import functools
23
import os
34
import sys
45
import time
@@ -13,6 +14,8 @@
1314
RBD_FEATURE_FAST_DIFF,
1415
RBD_FLAG_OBJECT_MAP_INVALID)
1516

17+
print = functools.partial(print, flush=True)
18+
1619
POOL_NAME='rbd'
1720
PARENT_IMG_NAME='test_notify_parent'
1821
CLONE_IMG_NAME='test_notify_clone'

0 commit comments

Comments
 (0)