diff options
author | Eric Engestrom <eric@engestrom.ch> | 2017-11-29 11:48:44 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2019-02-20 18:48:39 +0000 |
commit | 182eb2ba3a8e687d0d279d0d33c636c525a71730 (patch) | |
tree | 680df67715899434ec9f249c21e172e5f348f0be | |
parent | b758f0a953c9c76c282452dd2326e34a17ac8b6f (diff) | |
download | meson-182eb2ba3a8e687d0d279d0d33c636c525a71730.zip meson-182eb2ba3a8e687d0d279d0d33c636c525a71730.tar.gz meson-182eb2ba3a8e687d0d279d0d33c636c525a71730.tar.bz2 |
mtest: make `meson test --list` return whether there was any test to list
-rw-r--r-- | mesonbuild/mtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 6536558..351e45d 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -747,6 +747,7 @@ def list_tests(th): tests = th.get_tests() for t in tests: print(th.get_pretty_suite(t)) + return not tests def rebuild_all(wd): if not os.path.isfile(os.path.join(wd, 'build.ninja')): @@ -800,8 +801,7 @@ def run(options): try: th = TestHarness(options) if options.list: - list_tests(th) - return 0 + return list_tests(th) if not options.args: return th.doit() return th.run_special() |