fix tests

This commit is contained in:
Ethan Buchman 2017-01-12 23:11:38 -05:00
parent 1e25e9f58f
commit ba7ca4f372
3 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -eu
NUM_OF_PEERS=$1
# how many attempts for each peer to catch up by height
MAX_ATTEMPTS_TO_CATCH_UP=10
MAX_ATTEMPTS_TO_CATCH_UP=20
echo "Waiting for nodes to come online"
set +e

View File

@ -10,6 +10,8 @@ bash ./test/docker/build.sh
echo ""
echo "* running go tests and app tests in docker container"
# sometimes its helpful to mount the local test folder
# -v $GOPATH/src/github.com/tendermint/tendermint/test:/go/src/github.com/tendermint/tendermint/test
docker run --name run_test -t tester bash test/run_test.sh
# copy the coverage results out of docker container

View File

@ -28,17 +28,20 @@ for lib in "${LIBS_GO_TEST[@]}"; do
fi
done
DIR=`pwd`
for lib in "${LIBS_MAKE_TEST[@]}"; do
# checkout vendored version of lib
bash scripts/glide/checkout.sh $GLIDE $lib
echo "Testing $lib ..."
cd $GOPATH/src/github.com/tendermint/$lib
make test
if [[ "$?" != 0 ]]; then
echo "FAIL"
exit 1
fi
cd $DIR
done
echo ""