summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-05 16:39:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-05 22:15:19 +0900
commitf6c909b6191012a88c499856b47272d826eba227 (patch)
treeda93f78cf6ec97b6d12bc8fd0f1eab1ff63f3c7e
parenta5b81ba381af74d872fb9fea0a4581262241aaae (diff)
test: reduce concurrency
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--test/scenario_test/ci-scripts/travis-build-script.sh11
1 files changed, 11 insertions, 0 deletions
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]}