mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Exclude bypy/b from go test discovery
This commit is contained in:
@@ -124,6 +124,8 @@ def find_testable_go_packages() -> tuple[set[str], dict[str, list[str]]]:
|
||||
base = os.getcwd()
|
||||
pat = re.compile(r'^func Test([A-Z]\w+)', re.MULTILINE)
|
||||
for (dirpath, dirnames, filenames) in os.walk(base):
|
||||
if 'b' in dirnames and os.path.basename(dirpath) == 'bypy':
|
||||
dirnames.remove('b')
|
||||
for f in filenames:
|
||||
if f.endswith('_test.go'):
|
||||
q = os.path.relpath(dirpath, base)
|
||||
|
||||
Reference in New Issue
Block a user