[CRIU] [PATCH] zdtm.py: Flush stdout before running make

Pavel Emelyanov xemul at parallels.com
Fri Oct 30 08:50:12 PDT 2015


Otherwise make's output appears in logs before zdtm.py's one

Reported-by: Andrey Vagin <avagin at odin.com>
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 test/zdtm.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/zdtm.py b/test/zdtm.py
index b1bf2b6..0c23a47 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -229,6 +229,7 @@ class zdtm_test:
 		self.auto_reap = True
 
 	def __make_action(self, act, env = None, root = None):
+		sys.stdout.flush() # Not to let make's messages appear before ours
 		tpath = self.__name + '.' + act
 		s_args = ['make', '--no-print-directory', \
 			 	'-C', os.path.dirname(tpath), \
-- 
1.9.3



More information about the CRIU mailing list