From f6c909b6191012a88c499856b47272d826eba227 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 5 Apr 2016 16:39:57 +0900 Subject: test: reduce concurrency Signed-off-by: ISHIDA Wataru --- test/scenario_test/ci-scripts/travis-build-script.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/scenario_test/ci-scripts/travis-build-script.sh b/test/scenario_test/ci-scripts/travis-build-script.sh index 5fd5d150..e273d38a 100644 --- a/test/scenario_test/ci-scripts/travis-build-script.sh +++ b/test/scenario_test/ci-scripts/travis-build-script.sh @@ -54,6 +54,16 @@ PIDS=("${PIDS[@]}" $!) sudo PYTHONPATH=$GOBGP/test python route_reflector_test.py --gobgp-image $GOBGP_IMAGE --test-prefix rr -x & PIDS=("${PIDS[@]}" $!) +for (( i = 0; i < ${#PIDS[@]}; ++i )) +do + wait ${PIDS[$i]} + if [ $? != 0 ]; then + exit 1 + fi +done + +PIDS=() + sudo PYTHONPATH=$GOBGP/test python global_policy_test.py --gobgp-image $GOBGP_IMAGE --test-prefix gpol -x & PIDS=("${PIDS[@]}" $!) @@ -69,6 +79,7 @@ PIDS=("${PIDS[@]}" $!) sudo PYTHONPATH=$GOBGP/test python monitor_test.py --gobgp-image $GOBGP_IMAGE --test-prefix mon -x & PIDS=("${PIDS[@]}" $!) + for (( i = 0; i < ${#PIDS[@]}; ++i )) do wait ${PIDS[$i]} -- cgit v1.2.3