File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
localstack-core/localstack/testing/testselection
tests/unit/testing/testselection Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def cloudformation_resource_provider_rule(
168
168
search_patterns : Iterable [str ] = DEFAULT_SEARCH_PATTERNS ,
169
169
test_dirs : Iterable [str ] = ("tests/aws/services" ,),
170
170
) -> Iterable [str ]:
171
- root_dir = (pathlib .Path . cwd () / ".." / ".." / ".." / ".." ).resolve ()
171
+ root_dir = (pathlib .Path ( __file__ ). parent / ".." / ".." / ".." / ".." ).resolve ()
172
172
match = None
173
173
for pattern in search_patterns :
174
174
match = re .findall (pattern , changed_file_path )
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def test_directory_rules_no_match():
142
142
143
143
def test_service_tests_executed_on_cloudformation_changes ():
144
144
selected_tests = get_affected_tests_from_changes (
145
- ["localstack/services/cloudformation/provider.py" ], MATCHING_RULES
145
+ ["localstack-core/localstack /services/cloudformation/provider.py" ], MATCHING_RULES
146
146
)
147
147
# picking lambda as an example
148
148
assert "tests/aws/services/lambda_/resources" in selected_tests
You can’t perform that action at this time.
0 commit comments