From e8a596e4cdbea73b0778313837312c7eed7a79cf Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 15 Jun 2016 12:22:48 +0900 Subject: [PATCH] test: fix travis-build-script.sh to honor unit test results Fix the bug introduced by the following commit: commit 835d1f38e7f164393494191a5a58b29c8c9a88ac Author: ISHIDA Wataru Date: Tue May 31 06:53:40 2016 +0000 test: test go example embeded in document Signed-off-by: FUJITA Tomonori --- test/scenario_test/ci-scripts/travis-build-script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/scenario_test/ci-scripts/travis-build-script.sh b/test/scenario_test/ci-scripts/travis-build-script.sh index 87fa9a7b..75401f3d 100644 --- a/test/scenario_test/ci-scripts/travis-build-script.sh +++ b/test/scenario_test/ci-scripts/travis-build-script.sh @@ -7,8 +7,7 @@ export GOBGP=`pwd` if [ "$SCENARIO" != "true" ]; then echo "execute unit test." go version - go test -v ./... - [ "$?" != 0 ] && exit "$?" + go test -v ./... || exit "$?" python $GOBGP/test/scenario_test/ci-scripts/build_embeded_go.py $GOBGP/docs/sources/lib.md exit $? fi