Admin: Fail dependency-check script, instead of failing silently (#4758)

This commit is contained in:
Bert Blommers 2022-01-13 22:10:20 -01:00 committed by GitHub
parent 72fdaa3552
commit 63d1c09659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ valid_service() {
# Verify whether this is a valid service # Verify whether this is a valid service
# We'll ignore metadata folders, and folders that test generic Moto behaviour # 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 # 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 if echo $ignore_moto_folders | grep -q "$1"; then
return 1 return 1
else else
@ -92,3 +92,7 @@ do
ITER=$(expr $ITER + 1) ITER=$(expr $ITER + 1)
done done
wait 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))