From 63d1c09659e84e09c1ce900fcf879fbf06dcd9d1 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Thu, 13 Jan 2022 22:10:20 -0100 Subject: [PATCH] Admin: Fail dependency-check script, instead of failing silently (#4758) --- scripts/dependency_test.sh | 6 +++++- ...ervices.py => test_vpc_endpoint_services_integration.py} | 0 2 files changed, 5 insertions(+), 1 deletion(-) rename tests/test_ec2/{test_vpc_endpoint_services.py => test_vpc_endpoint_services_integration.py} (100%) diff --git a/scripts/dependency_test.sh b/scripts/dependency_test.sh index 4800c4a47..01ce3e2d8 100755 --- a/scripts/dependency_test.sh +++ b/scripts/dependency_test.sh @@ -33,7 +33,7 @@ valid_service() { # Verify whether this is a valid service # We'll ignore metadata folders, and folders that test generic Moto behaviour # We'll also ignore CloudFormation, as it will always depend on other services - local ignore_moto_folders="core instance_metadata __pycache__ templates cloudformation packages utilities s3bucket_path" + local ignore_moto_folders="core instance_metadata __pycache__ templates cloudformation resourcegroupstaggingapi packages utilities s3bucket_path" if echo $ignore_moto_folders | grep -q "$1"; then return 1 else @@ -92,3 +92,7 @@ do ITER=$(expr $ITER + 1) done wait + +nr_of_failed_services=$(ls -1q test_results*.log 2>/dev/null | wc -l) +echo "Nr of failed services: ${nr_of_failed_services}" +exit $((nr_of_failed_services)) diff --git a/tests/test_ec2/test_vpc_endpoint_services.py b/tests/test_ec2/test_vpc_endpoint_services_integration.py similarity index 100% rename from tests/test_ec2/test_vpc_endpoint_services.py rename to tests/test_ec2/test_vpc_endpoint_services_integration.py