Skip to content

Commit

Permalink
pass file traversal limit in walk_tree method when using 'buildtest b…
Browse files Browse the repository at this point in the history
…uildspec find'

update file_traversal_limit to 1000 in example configuration
  • Loading branch information
shahzebsiddiqui committed Dec 17, 2024
1 parent 6fc95ff commit 95be76f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion buildtest/cli/buildspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,15 @@ def _discover_buildspecs(self):
"""

buildspecs = []
file_traversal_limit = self.configuration.target_config.get(
"file_traversal_limit", 1000
)
# recursively search all .yml files in directory and add to list
if self.paths:
for path in self.paths:
buildspec = walk_tree(path, ".yml")
buildspec = walk_tree(
path, file_traverse_limit=file_traversal_limit, ext=".yml"
)
buildspecs += buildspec

if self.buildspec_files_to_add:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/configuration/container_executors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ system:
# test timeout in number of seconds
# timeout: 3600

file_traversal_limit: 5
file_traversal_limit: 1000

# enable pagination for buildtest
pager: false
Expand Down

0 comments on commit 95be76f

Please sign in to comment.