File tree 1 file changed +2
-2
lines changed
qa/tools/apex_algorithm_qa_tools
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ def from_dict(cls, data: dict) -> BenchmarkScenario:
56
56
)
57
57
58
58
59
- def get_benchmark_scenarios () -> List [BenchmarkScenario ]:
59
+ def get_benchmark_scenarios (root = None ) -> List [BenchmarkScenario ]:
60
60
# TODO: instead of flat list, keep original grouping/structure of benchmark scenario files?
61
61
# TODO: check for uniqueness of scenario IDs? Also make this a pre-commit lint tool?
62
62
scenarios = []
63
63
# old style glob is used to support symlinks
64
- for path in glob .glob (str (get_project_root () / "algorithm_catalog" ) + "/**/*benchmark_scenarios*/*.json" , recursive = True ):
64
+ for path in glob .glob (str ( ( root or get_project_root () ) / "algorithm_catalog" ) + "/**/*benchmark_scenarios*/*.json" , recursive = True ):
65
65
with open (path ) as f :
66
66
data = json .load (f )
67
67
# TODO: support single scenario files in addition to listings?
You can’t perform that action at this time.
0 commit comments