Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced go get ginkgo with go install ginkgo in run-in-docker.sh #8569

Merged
merged 1 commit into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions build/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion test/e2e-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down