File tree Expand file tree Collapse file tree 5 files changed +15
-59
lines changed Expand file tree Collapse file tree 5 files changed +15
-59
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
27
27
28
28
FOUND=" $( echo " ${PATH} " | sed ' s/:/\n/g' | grep -q " ^${KUBE_ROOT} /third_party/etcd$" || true) "
29
29
kube::etcd::install
30
- test -n " ${FOUND} " || echo " PATH=\"\$ PATH:${KUBE_ROOT} /third_party/etcd\" "
30
+ test -n " ${FOUND} " || echo " export PATH=\"\$ { PATH} :${KUBE_ROOT} /third_party/etcd\" "
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ if [ -n "${KUBE_HACK_TOOLS_GOTOOLCHAIN:-}" ]; then
48
48
hack_tools_gotoolchain=" ${KUBE_HACK_TOOLS_GOTOOLCHAIN} " ;
49
49
fi
50
50
GOTOOLCHAIN=" ${hack_tools_gotoolchain} " go -C " ${KUBE_ROOT} /hack/tools" install github.com/cespare/prettybench
51
- GOTOOLCHAIN=" ${hack_tools_gotoolchain} " go -C " ${KUBE_ROOT} /hack/tools" install gotest.tools/gotestsum
52
51
53
52
# Disable the Go race detector.
54
53
export KUBE_RACE=" "
Original file line number Diff line number Diff line change @@ -19,20 +19,11 @@ set -o nounset
19
19
set -o pipefail
20
20
set -o xtrace
21
21
22
- # Runs test-cmd,
23
- # producing JUnit-style XML test
24
- # reports in ${WORKSPACE}/artifacts. This script is intended to be run from
25
- # kubekins-test container with a kubernetes repo mapped in. See
26
- # k8s.io/test-infra/scenarios/kubernetes_verify.py
22
+ # Runs test-cmd, intended to be run in prow.k8s.io
23
+ set -x;
27
24
28
- export PATH=${GOPATH} /bin:${PWD} /third_party/etcd:/usr/local/go/bin:${PATH}
29
-
30
- # Set artifacts directory
31
- export ARTIFACTS=${ARTIFACTS:- " ${WORKSPACE} /artifacts" }
32
-
33
- cd " ${GOPATH} /src/k8s.io/kubernetes"
34
-
35
- ./hack/install-etcd.sh
25
+ # TODO: make test-cmd should handle this automatically
26
+ source ./hack/install-etcd.sh
36
27
37
28
make test-cmd
38
29
Original file line number Diff line number Diff line change @@ -19,32 +19,14 @@ set -o nounset
19
19
set -o pipefail
20
20
set -o xtrace
21
21
22
- # Runs test-cmd and test-integration,
23
- # producing JUnit-style XML test
24
- # reports in ${WORKSPACE}/artifacts. This script is intended to be run from
25
- # kubekins-test container with a kubernetes repo mapped in. See
26
- # k8s.io/test-infra/scenarios/kubernetes_verify.py
22
+ # Runs test-cmd and test-integration, intended to be run in prow.k8s.io
23
+ set -x;
27
24
28
- export PATH=${GOPATH} /bin:${PWD} /third_party/etcd:/usr/local/go/bin:${PATH}
25
+ # TODO: make test-integration should handle this automatically
26
+ source ./hack/install-etcd.sh
29
27
30
- # Install tools we need
31
- hack_tools_gotoolchain=" ${GOTOOLCHAIN:- } "
32
- if [ -n " ${KUBE_HACK_TOOLS_GOTOOLCHAIN:- } " ]; then
33
- hack_tools_gotoolchain=" ${KUBE_HACK_TOOLS_GOTOOLCHAIN} " ;
34
- fi
35
- GOTOOLCHAIN=" ${hack_tools_gotoolchain} " go -C " ./hack/tools" install gotest.tools/gotestsum
36
-
37
- # Disable coverage report
38
- export KUBE_COVER=" n"
39
- # Set artifacts directory
40
- export ARTIFACTS=${ARTIFACTS:- " ${WORKSPACE} /artifacts" }
41
28
# Save the verbose stdout as well.
42
29
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
43
30
export LOG_LEVEL=4
44
-
45
- cd " ${GOPATH} /src/k8s.io/kubernetes"
46
-
47
- ./hack/install-etcd.sh
48
-
49
31
make test-cmd
50
32
make test-integration
Original file line number Diff line number Diff line change @@ -19,27 +19,11 @@ set -o nounset
19
19
set -o pipefail
20
20
set -o xtrace
21
21
22
- # Runs test-integration,
23
- # producing JUnit-style XML test
24
- # reports in ${WORKSPACE}/artifacts. This script is intended to be run from
25
- # kubekins-test container with a kubernetes repo mapped in. See
26
- # k8s.io/test-infra/scenarios/kubernetes_verify.py
22
+ # Runs test-integration
23
+ # This script is intended to be run from prow.k8s.io
24
+ set -x;
27
25
28
- export PATH=${GOPATH} /bin:${PWD} /third_party/etcd:/usr/local/go/bin:${PATH}
26
+ # TODO: make test-integration should handle this automatically
27
+ source ./hack/install-etcd.sh
29
28
30
- # Install tools we need
31
- go -C " ./hack/tools" install gotest.tools/gotestsum
32
-
33
- # Disable coverage report
34
- export KUBE_COVER=" n"
35
- # Set artifacts directory
36
- export ARTIFACTS=${ARTIFACTS:- " ${WORKSPACE} /artifacts" }
37
- # Save the verbose stdout as well.
38
- export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
39
- export LOG_LEVEL=4
40
-
41
- cd " ${GOPATH} /src/k8s.io/kubernetes"
42
-
43
- ./hack/install-etcd.sh
44
-
45
- make test-integration
29
+ make test-integration KUBE_KEEP_VERBOSE_TEST_OUTPUT=y LOG_LEVEL=4
You can’t perform that action at this time.
0 commit comments