aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-12-12 13:45:48 -0800
committerXavier Claessens <xclaesse@gmail.com>2019-12-13 09:57:05 -0500
commit31bb6eae455b547a563d3130c483bbb7ace96ae0 (patch)
tree034908cba41b6727ea4931d1d9c56f9970e254e7 /run_tests.py
parent7f0224fb888cfe28d1e4ad913f33b8eb085eb83b (diff)
downloadmeson-31bb6eae455b547a563d3130c483bbb7ace96ae0.zip
meson-31bb6eae455b547a563d3130c483bbb7ace96ae0.tar.gz
meson-31bb6eae455b547a563d3130c483bbb7ace96ae0.tar.bz2
run_tests.py: use mlog.log_once to avoid spamming ninja < 1.9 warnings
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_tests.py b/run_tests.py
index 33dc1be..c811705 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -211,7 +211,7 @@ def get_backend_commands(backend, debug=False):
if v == '1.9':
NINJA_1_9_OR_NEWER = True
else:
- print('Found ninja <1.9, tests will run slower')
+ mlog.warning('Found ninja <1.9, tests will run slower', once=True)
if 'CI' in os.environ:
raise RuntimeError('Require ninja >= 1.9 when running on Meson CI')
break
@@ -238,12 +238,12 @@ def ensure_backend_detects_changes(backend):
# XXX: Upgrade Travis image to Apple FS when that becomes available
# TODO: Detect HFS+ vs APFS
if mesonlib.is_osx():
- print('Running on HFS+, enabling timestamp resolution workaround')
+ mlog.warning('Running on HFS+, enabling timestamp resolution workaround', once=True)
need_workaround = True
# We're using ninja >= 1.9 which has QuLogic's patch for sub-1s resolution
# timestamps
if not NINJA_1_9_OR_NEWER:
- print('Don\'t have ninja >= 1.9, enabling timestamp resolution workaround')
+ mlog.warning('Don\'t have ninja >= 1.9, enabling timestamp resolution workaround', once=True)
need_workaround = True
# Increase the difference between build.ninja's timestamp and the timestamp
# of whatever you changed: https://github.com/ninja-build/ninja/issues/371