From 7b858e89dfffdd08a6084a590fa87cb8e70ea132 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Thu, 15 Sep 2016 12:55:59 -0700 Subject: [PATCH] Flush 'Build for ...' messages before each build During a run of 'auto_build.py', stdout buffering get taken over by the subprocess module, causing print statements in 'auto_build.py' to not output until the very end of a build. Calling 'sys.stdout.flush()' causes stdout to be output before the next call to 'subprocess'. Change-Id: Ibb193b5d30458a3d9be20d418ee22cac302ee819 Signed-off-by: Trevor Bramwell Reviewed-on: https://gerrit.iotivity.org/gerrit/11823 Reviewed-by: Rick Bell Tested-by: jenkins-iotivity Reviewed-by: Dave Thaler --- auto_build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/auto_build.py b/auto_build.py index 49056c2..7ef2c28 100644 --- a/auto_build.py +++ b/auto_build.py @@ -36,6 +36,7 @@ def call_scons(build_options, extra_option_str): cmd_line += " " + str(extra_option_str) print ("Running : " + cmd_line) + sys.stdout.flush() exit_code = subprocess.Popen([cmd_line], shell=True).wait() if exit_code != 0: exit(exit_code) -- 2.7.4