From: Trevor Bramwell Date: Thu, 15 Sep 2016 19:55:59 +0000 (-0700) Subject: Flush 'Build for ...' messages before each build X-Git-Tag: 1.3.0~1057^2~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b858e89dfffdd08a6084a590fa87cb8e70ea132;p=platform%2Fupstream%2Fiotivity.git 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 --- 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)