From: Jouni Malinen Date: Sun, 29 Sep 2013 17:42:37 +0000 (+0300) Subject: tests: Flush stdout after each status line print X-Git-Tag: hostap_2_1~883 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9174c3b4e4ca4f624fb05e486bfa61fdbfa4179;p=thirdparty%2Fhostap.git tests: Flush stdout after each status line print This makes it more convenient to follow live test execution status. Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 415198a7f..8acd41aaf 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -114,6 +114,7 @@ def main(): logger.info("START " + t.__name__) if log_file: print "START " + t.__name__ + sys.stdout.flush() if t.__doc__: logger.info("Test: " + t.__doc__) start = datetime.now() @@ -141,6 +142,7 @@ def main(): logger.info(result) if log_file or print_res: print result + sys.stdout.flush() if results_file: f = open(results_file, 'a') f.write(result + "\n") @@ -154,6 +156,7 @@ def main(): logger.info(result) if log_file: print result + sys.stdout.flush() if results_file: f = open(results_file, 'a') f.write(result + "\n")