From e18a2e3ec6a3b48e37579bb739755c8d87798015 Mon Sep 17 00:00:00 2001 From: Hassan Raza Date: Sat, 26 Sep 2026 22:08:24 +0500 Subject: [PATCH] Run all requested Go test names --- kitty_tests/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty_tests/main.py b/kitty_tests/main.py index 571b160ea..3985f9b0e 100644 --- a/kitty_tests/main.py +++ b/kitty_tests/main.py @@ -191,8 +191,8 @@ def run_go(packages: set[str], names: Sequence[str]) -> GoProc: go = go_exe() go_pkg_args = [f'github.com/kovidgoyal/kitty/{x}' for x in packages] cmd = [go, 'test', '--tags', 'testing', '-v', '-json'] - for name in names: - cmd.extend(('-run', name)) + if names: + cmd.extend(('-run', '^Test(?:' + '|'.join(re.escape(name) for name in names) + ')$')) cmd += go_pkg_args return GoProc(cmd)