Skip to content

Commit 8b9a6dc

Browse files
committed
Correctly providing directories to build_apis
The shared `prepare_toolchain` and `scan_resources` functions in build_api expect a list, not a string. This is different from the toolchain.scan_resources function. Now the functions are being used correctly within the `find_tests` function in test_api
1 parent cc3a382 commit 8b9a6dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,10 +2001,10 @@ def find_tests(base_dir, target_name, toolchain_name, options=None):
20012001
tests = {}
20022002

20032003
# Prepare the toolchain
2004-
toolchain = prepare_toolchain(base_dir, target_name, toolchain_name, options=options, silent=True)
2004+
toolchain = prepare_toolchain([base_dir], target_name, toolchain_name, options=options, silent=True)
20052005

20062006
# Scan the directory for paths to probe for 'TESTS' folders
2007-
base_resources = scan_resources(base_dir, toolchain)
2007+
base_resources = scan_resources([base_dir], toolchain)
20082008

20092009
dirs = base_resources.inc_dirs
20102010
for directory in dirs:

0 commit comments

Comments
 (0)