Skip to content

Commit db9fe39

Browse files
authored
Fix directory level when computing script dependencies (istio#14452)
1 parent 6acb30e commit db9fe39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/pr_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def get_script_dependencies_graph(path_prefix, file_suffix="test.sh"):
9090
if el in script_dependencies:
9191
to_add = script_dependencies[el] - checked
9292
to_check.update(to_add)
93-
test_paths.update(map(lambda file_path: file_path[len(doc_file_prefix):].rsplit('/', 1)[0], to_add))
94-
93+
test_paths.update(map(lambda file_path: file_path[len(doc_file_prefix):], to_add))
9594
elif filename == istio_go_dependency or \
9695
filename.startswith(test_framework_pkg) or \
9796
filename.startswith(test_framework_util) or \

0 commit comments

Comments
 (0)