replaced go get ginkgo with go install ginkgo for DIND environ (#8569)
This commit is contained in:
parent
7402d51a02
commit
fc58e92b39
2 changed files with 15 additions and 8 deletions
|
@ -62,18 +62,25 @@ else
|
|||
PLATFORM_FLAG=
|
||||
fi
|
||||
|
||||
env && hostname && uname -a
|
||||
echo "..printing env & other vars to stdout"
|
||||
echo "HOSTNAME=`hostname`"
|
||||
uname -a
|
||||
env
|
||||
echo "DIND_ENABLED=$DOCKER_IN_DOCKER_ENABLED"
|
||||
echo "FLAGS=$FLAGS"
|
||||
echo "PLATFORM=$PLATFORM"
|
||||
echo "PLATFORM_FLAG=$PLATFORM_FLAG"
|
||||
echo "done..printing env & other vars to stdout"
|
||||
|
||||
if [[ "$DOCKER_IN_DOCKER_ENABLED" == "true" ]]; then
|
||||
echo "..reached DIND check TRUE block, inside run-in-docker.sh. Checking environ"
|
||||
go get github.com/onsi/ginkgo/ginkgo@v1.16.4
|
||||
echo "..reached DIND check TRUE block, inside run-in-docker.sh"
|
||||
echo "FLAGS=$FLAGS"
|
||||
go env
|
||||
set -x
|
||||
go install -mod=mod github.com/onsi/ginkgo/ginkgo@v1.16.4
|
||||
find / -type f -name ginkgo 2>/dev/null
|
||||
which ginkgo
|
||||
/bin/bash -c "${FLAGS}"
|
||||
set +x
|
||||
else
|
||||
echo "..reached DIND check ELSE block, inside run-in-docker.sh. Checking environ"
|
||||
echo "..reached DIND check ELSE block, inside run-in-docker.sh"
|
||||
docker run \
|
||||
${PLATFORM_FLAG} ${PLATFORM} \
|
||||
--tty \
|
||||
|
|
|
@ -3,7 +3,7 @@ DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|||
|
||||
image:
|
||||
echo "..entered Makefile in /test/e2e-image"
|
||||
echo "..calling Make target <<e2e-test-binar>>y in /Makefile from inside /test/e2e-image/Makefile"
|
||||
echo "..calling Make target <<e2e-test-binary>> in /Makefile from inside /test/e2e-image/Makefile"
|
||||
make -C $(DIR)/../../ e2e-test-binary
|
||||
echo "..done building e2e-test-binary from /test/e2e-image/Makefile"
|
||||
|
||||
|
|
Loading…
Reference in a new issue