File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 VMLINUX_AVAILABLE = False
3232
3333
34- # ── shared fixture: collected test cases ───────────────────────────────────
35-
36-
37- def _all_cases ():
38- return collect_all_test_files ()
39-
40-
4134# ── pytest_generate_tests: parametrize on bpf_test_file ───────────────────
4235
4336
4437def pytest_generate_tests (metafunc ):
4538 if "bpf_test_file" in metafunc .fixturenames :
46- cases = _all_cases ()
39+ cases = collect_all_test_files ()
4740 metafunc .parametrize (
4841 "bpf_test_file" ,
4942 [c .path for c in cases ],
@@ -55,7 +48,7 @@ def pytest_generate_tests(metafunc):
5548
5649
5750def pytest_collection_modifyitems (items ):
58- case_map = {c .rel_path : c for c in _all_cases ()}
51+ case_map = {c .rel_path : c for c in collect_all_test_files ()}
5952
6053 for item in items :
6154 # Resolve the test case from the parametrize ID embedded in the node id.
You can’t perform that action at this time.
0 commit comments