test: fix travis-build-script.sh to honor unit test results

Fix the bug introduced by the following commit:

commit 835d1f38e7
Author: ISHIDA Wataru <[email protected]>
Date:   Tue May 31 06:53:40 2016 +0000

    test: test go example embeded in document

Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
FUJITA Tomonori
2016-06-15 12:40:08 +09:00
parent 140008ec2a
commit e8a596e4cd
@@ -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