diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-03-04 18:40:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 18:40:13 +0200 |
commit | ee863d33c134a78636c71392eac3a7c6939317e5 (patch) | |
tree | c100edef6537d461f1fc6de140cc303326ee9d46 /mesonbuild | |
parent | 94bb29738eb00f873c3467eba0bada4ca58d8ab9 (diff) | |
parent | 75f436542cf58cc54817d095788b24ea1101d95f (diff) | |
download | meson-ee863d33c134a78636c71392eac3a7c6939317e5.zip meson-ee863d33c134a78636c71392eac3a7c6939317e5.tar.gz meson-ee863d33c134a78636c71392eac3a7c6939317e5.tar.bz2 |
Merge pull request #2601 from 1ace/feature/completion
Add completion scripts for Bash and Zsh
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/mesonmain.py | 2 | ||||
-rw-r--r-- | mesonbuild/mtest.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 822a943..91a52b1 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -28,6 +28,8 @@ from .environment import detect_msys2_arch from .wrap import wraptool +# Note: when adding arguments, please also add them to the completion +# scripts in $MESONSRC/data/shell-completions/ class CommandLineParser: def __init__(self): self.term_width = shutil.get_terminal_size().columns diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 02b728e..77a0f82 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -943,6 +943,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')): @@ -996,8 +997,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() |