diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-15 09:42:38 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-02 22:01:13 +0300 |
commit | 59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b (patch) | |
tree | c78094bb98624b700369f0018a4b0d557bb802dc /mesontest.py | |
parent | fa278f351fe3d6924b4d1961f77b5b4a36e133f8 (diff) | |
download | meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.zip meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.gz meson-59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b.tar.bz2 |
Print deprecation warnings on old style commands.
Diffstat (limited to 'mesontest.py')
-rwxr-xr-x | mesontest.py | 5 |
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:])) |