test, build: Fix gopath creation

This commit is contained in:
Manjunath A Kumatagi
2018-02-26 01:21:53 -05:00
parent 37f577ca0f
commit adf4e05079
2 changed files with 46 additions and 1 deletions

6
test
View File

@@ -16,6 +16,10 @@ set -e
source ./build
if [[ "${ETCD_SETUP_GOPATH}" == "1" ]]; then
etcd_setup_gopath
fi
# build before setting up test GOPATH
if [[ "${PASSES}" == *"functional"* ]]; then
./tools/functional-tester/build
@@ -540,7 +544,7 @@ function build_cov_pass {
function compile_pass {
echo "Checking build..."
go build -v ./tools/...
GO_BUILD_FLAGS="-a -v" tools_build
}
# fail fast on static tests