mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-18 06:04:49 +00:00
Merge branch 'fix/go-test-selection' of https://github.com/M-Hassan-Raza/kitty
This commit is contained in:
commit
affbdaea37
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue