aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mlog.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-06-22 22:42:59 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-06-23 00:03:59 +0300
commit436eab9b85d78e36c66afa650059d0ebe5b156c5 (patch)
treefb16024c55339400d40052d87d171a7b089ed244 /mesonbuild/mlog.py
parentba4f26f8bfa33885157585c5e71695ae05093e7e (diff)
downloadmeson-436eab9b85d78e36c66afa650059d0ebe5b156c5.zip
meson-436eab9b85d78e36c66afa650059d0ebe5b156c5.tar.gz
meson-436eab9b85d78e36c66afa650059d0ebe5b156c5.tar.bz2
Print full mesonlog on failed tests when run under CI.
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r--mesonbuild/mlog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index 2807c2b..dab51bd 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -71,11 +71,13 @@ def debug(*args, **kwargs):
arr = process_markup(args, False)
if log_file is not None:
print(*arr, file=log_file, **kwargs) # Log file never gets ANSI codes.
+ log_file.flush()
def log(*args, **kwargs):
arr = process_markup(args, False)
if log_file is not None:
print(*arr, file=log_file, **kwargs) # Log file never gets ANSI codes.
+ log_file.flush()
if colorize_console:
arr = process_markup(args, True)
print(*arr, **kwargs)