xds interop: Fix buildscripts not continuing on a failed test suite (#9817)

Apparently there's a difference between bash 3 and bash 4.
OSX comes with bash 3 out-of-box, so for whoever wrote this logic
it "worked on my machine".
This commit is contained in:
Sergii Tkachenko 2023-01-13 15:42:45 -05:00 committed by GitHub
parent 23d34cdd84
commit d83a599c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ main() {
local failed_tests=0
test_suites=("baseline_test" "security_test" "authz_test")
for test in "${test_suites[@]}"; do
run_test $test || (( failed_tests++ ))
run_test $test || (( failed_tests++ )) && true
done
echo "Failed test suites: ${failed_tests}"
if (( failed_tests > 0 )); then

View File

@ -178,7 +178,7 @@ main() {
local failed_tests=0
test_suites=("api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "affinity_test" "outlier_detection_test" "custom_lb_test")
for test in "${test_suites[@]}"; do
run_test $test || (( failed_tests++ ))
run_test $test || (( failed_tests++ )) && true
done
echo "Failed test suites: ${failed_tests}"
if (( failed_tests > 0 )); then