aboutsummaryrefslogtreecommitdiff
path: root/mesontest.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-15 09:42:38 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-02 22:01:13 +0300
commit59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b (patch)
treec78094bb98624b700369f0018a4b0d557bb802dc /mesontest.py
parentfa278f351fe3d6924b4d1961f77b5b4a36e133f8 (diff)
downloadmeson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.zip
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.gz
meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.bz2
Print deprecation warnings on old style commands.
Diffstat (limited to 'mesontest.py')
-rwxr-xr-xmesontest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesontest.py b/mesontest.py
index c2d39d6..e0ba7c2 100755
--- a/mesontest.py
+++ b/mesontest.py
@@ -16,10 +16,9 @@
# A tool to run tests in many different ways.
-from mesonbuild import mesonmain
+from mesonbuild import mesonmain, mlog
import sys
if __name__ == '__main__':
- print('Warning: This executable is deprecated. Use "meson test" instead.',
- file=sys.stderr)
+ mlog.warning('This executable is deprecated, use "meson test" instead.')
sys.exit(mesonmain.run(['test'] + sys.argv[1:]))