Skip to content

Commit 4d357cb

Browse files
committed
scripts: ci: test_plan: early check if path is in testsuite roots
For tree with common folder. Performance improvment - prevent globbing outside of testsuite roots. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 14ffdac commit 4d357cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/test_plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def find_tests(self):
312312
scope_found = True
313313
else:
314314
d = os.path.dirname(d)
315-
elif tail == "common":
315+
elif tail == "common" and self.is_in_testsuite_root(head):
316316
# Look for yamls in directories collocated with common
317317

318318
yamls_found = [yaml for yaml in glob.iglob(head + '/**/testcase.yaml', recursive=True)]

0 commit comments

Comments
 (0)