mirror of https://github.com/grpc/grpc-node.git
xds interop: Fix buildscripts not continuing on a failed test suite
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:
parent
c09c874cd3
commit
a23dc843af
|
@ -167,7 +167,7 @@ main() {
|
||||||
local failed_tests=0
|
local failed_tests=0
|
||||||
test_suites=("baseline_test" "api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "outlier_detection_test")
|
test_suites=("baseline_test" "api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "outlier_detection_test")
|
||||||
for test in "${test_suites[@]}"; do
|
for test in "${test_suites[@]}"; do
|
||||||
run_test $test || (( failed_tests++ ))
|
run_test $test || (( failed_tests++ )) && true
|
||||||
done
|
done
|
||||||
echo "Failed test suites: ${failed_tests}"
|
echo "Failed test suites: ${failed_tests}"
|
||||||
if (( failed_tests > 0 )); then
|
if (( failed_tests > 0 )); then
|
||||||
|
|
Loading…
Reference in New Issue