Skip to content

Commit 30b41a9

Browse files
committed
tests filtering
1 parent d8bd75c commit 30b41a9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tools/scripts/build-tests/run-windows-integ-tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ cd "../.."
2424
# Run tests
2525
cd "${env:PREFIX_DIR}\\win-build"
2626
$serviceIdArg = if ($SERVICE_ID) { "--serviceId $SERVICE_ID" } else { "" }
27-
python3 ../aws-sdk-cpp/tools/scripts/run_integration_tests.py --testDir ./bin/Debug serviceIdArg
27+
python3 ../aws-sdk-cpp/tools/scripts/run_integration_tests.py --testDir ./bin/Debug $serviceIdArg

tools/scripts/run_integration_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ def main():
6565
service_ids = arguments["serviceId"].split(",")
6666
test_list = []
6767
for test in all_tests:
68-
if "core" not in test:
68+
service = test.replace('aws-cpp-sdk-', '').replace('-integration-tests', '').replace('-unit-tests', '').replace('-tests', '')
69+
if service != "core":
6970
for service_id in service_ids:
70-
if service_id in test:
71+
if service_id == service:
7172
test_list.append(test)
7273
break
7374
else:

0 commit comments

Comments
 (0)