mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Don't set the golang env for ginkgo
a) it doesn't need it b) changing CWD to a path with symlinks breaks deep within ginkgo, where it crafts a relative path to ../../../../../../platforms/amd64/whatever which then traverses the physical path not the symlinked one, and breaks.
This commit is contained in:
parent
7aff0f1486
commit
2100016e0f
@ -18,21 +18,18 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
GINKGO_PARALLEL=${GINKGO_PARALLEL:-n} # set to 'y' to run tests in parallel
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
|
|
||||||
source "${KUBE_ROOT}/cluster/common.sh"
|
source "${KUBE_ROOT}/cluster/common.sh"
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
# Ginkgo will build the e2e tests, so we need to make sure that the environment
|
|
||||||
# is set up correctly (including Godeps, etc).
|
|
||||||
kube::golang::setup_env
|
|
||||||
# Find the ginkgo binary build as part of the release.
|
# Find the ginkgo binary build as part of the release.
|
||||||
ginkgo=$(kube::util::find-binary "ginkgo")
|
ginkgo=$(kube::util::find-binary "ginkgo")
|
||||||
e2e_test=$(kube::util::find-binary "e2e.test")
|
e2e_test=$(kube::util::find-binary "e2e.test")
|
||||||
|
|
||||||
# --- Setup some env vars.
|
# --- Setup some env vars.
|
||||||
|
|
||||||
|
GINKGO_PARALLEL=${GINKGO_PARALLEL:-n} # set to 'y' to run tests in parallel
|
||||||
|
|
||||||
: ${KUBECTL:="${KUBE_ROOT}/cluster/kubectl.sh"}
|
: ${KUBECTL:="${KUBE_ROOT}/cluster/kubectl.sh"}
|
||||||
: ${KUBE_CONFIG_FILE:="config-test.sh"}
|
: ${KUBE_CONFIG_FILE:="config-test.sh"}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user