From 82a0e56eb23b5501fa17f54129cd895a9596b1cc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Aug 2022 22:30:04 +0530 Subject: [PATCH] Fix go tests not being excluded correctly --- kitty_tests/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty_tests/main.py b/kitty_tests/main.py index 178efd33a..69e76e8a9 100644 --- a/kitty_tests/main.py +++ b/kitty_tests/main.py @@ -158,10 +158,13 @@ def run_tests() -> None: raise SystemExit('No test module named %s found' % args.module) go_pkg_args = [f'kitty/{x}' for x in go_packages] + skip_go = False if args.name: tests = filter_tests_by_name(tests, *args.name) go_filter_spec = create_go_filter(go_pkg_args, *args.name) + skip_go = not go_filter_spec if not tests._tests and not go_filter_spec: raise SystemExit('No test named %s found' % args.name) run_cli(tests, args.verbosity) - run_go(go_pkg_args, go_filter_spec) + if not skip_go: + run_go(go_pkg_args, go_filter_spec)