Skip to content

Commit fa1a913

Browse files
committed
fix(testing): handle ENAMETOOLONG in gather_integration_tests.
1 parent 096eb49 commit fa1a913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unblob/testing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import glob
12
import shlex
23
import subprocess
34
from pathlib import Path
@@ -21,7 +22,9 @@ def configure_logging(): # noqa: PT004
2122

2223

2324
def gather_integration_tests(test_data_path: Path):
24-
test_input_dirs = list(test_data_path.glob("**/__input__"))
25+
test_input_dirs = [
26+
Path(p) for p in glob.iglob(f"{test_data_path}/**/__input__", recursive=True)
27+
]
2528
test_case_dirs = [p.parent for p in test_input_dirs]
2629
test_output_dirs = [p / "__output__" for p in test_case_dirs]
2730
test_ids = [

0 commit comments

Comments
 (0)