Fix build for multiple GOPATHs
The build script doesn't work when people have GOPATH like /path/a:/path/b Signed-off-by: Yongkun Anfernee Gui <agui@vmware.com>
This commit is contained in:
@@ -24,11 +24,15 @@ FOCUS=${FOCUS:-}
|
||||
SKIP=${SKIP:-""}
|
||||
REPORT_DIR=${REPORT_DIR:-"/tmp/test-cri"}
|
||||
|
||||
# Check GOPATH
|
||||
if [[ -z "${GOPATH}" ]]; then
|
||||
echo "GOPATH is not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# For multiple GOPATHs, keep the first one only
|
||||
GOPATH=${GOPATH%%:*}
|
||||
|
||||
CRITEST=${GOPATH}/bin/critest
|
||||
CRITEST_PKG=github.com/kubernetes-incubator/cri-tools
|
||||
CRICONTAINERD_SOCK=/var/run/cri-containerd.sock
|
||||
|
||||
Reference in New Issue
Block a user