Skip to content

Commit 7dd9ae5

Browse files
committed
Manual testing and correction with the CLI script
1 parent 94fffd0 commit 7dd9ae5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

localstack-core/localstack/testing/testselection/matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def cloudformation_resource_provider_rule(
168168
search_patterns: Iterable[str] = DEFAULT_SEARCH_PATTERNS,
169169
test_dirs: Iterable[str] = ("tests/aws/services",),
170170
) -> Iterable[str]:
171-
root_dir = (pathlib.Path.cwd() / ".." / ".." / ".." / "..").resolve()
171+
root_dir = (pathlib.Path(__file__).parent / ".." / ".." / ".." / "..").resolve()
172172
match = None
173173
for pattern in search_patterns:
174174
match = re.findall(pattern, changed_file_path)

tests/unit/testing/testselection/test_matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_directory_rules_no_match():
142142

143143
def test_service_tests_executed_on_cloudformation_changes():
144144
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
146146
)
147147
# picking lambda as an example
148148
assert "tests/aws/services/lambda_/resources" in selected_tests

0 commit comments

Comments
 (0)