fix tests
This commit is contained in:
parent
1e25e9f58f
commit
ba7ca4f372
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue