mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
Start on testing infra for command to JSON serialization
This commit is contained in:
@@ -113,7 +113,11 @@ def create_go_filter(packages: List[str], *names: str) -> str:
|
||||
if not go:
|
||||
return ''
|
||||
all_tests = set()
|
||||
for line in subprocess.check_output(f'{go} test -list .'.split() + packages).decode().splitlines():
|
||||
try:
|
||||
lines = subprocess.check_output(f'{go} test -list .'.split() + packages).decode().splitlines()
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise SystemExit(e.returncode)
|
||||
for line in lines:
|
||||
if line.startswith('Test'):
|
||||
all_tests.add(line[4:])
|
||||
tests = set(names) & all_tests
|
||||
|
||||
Reference in New Issue
Block a user