Skip to content

Commit b88808a

Browse files
committed
gen .make/go-pkgdeps.mk
1 parent 556548b commit b88808a

5 files changed

+7870
-5
lines changed

hack/test_cmd.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -o nounset
55
set -o pipefail
66

77
source "kit/helper.sh"
8-
export KUBE_ROOT=$(dirname "$(readlink -f "$0")")/../src/github.com/kubernetes/kubernetes/
8+
export KUBE_ROOT=$(dirname "$(readlink -f "$0")")/..
99
export TERM=linux
1010
echo "KUBE_ROOT directory: $KUBE_ROOT"
1111
cd "${WORKDIR}"
@@ -21,7 +21,6 @@ make generated_files kubeadm
2121
./build/run.sh make all WHAT=cmd/kubeadm
2222
2323
mkdir -p _output/local/go/bin/ && cp _output/dockerized/bin/linux/amd64/kubeadm _output/local/go/bin/
24-
./hack/install-etcd.sh
2524
TERM=linux PATH=$(pwd)/third_party/etcd:${PATH} make test-cmd
2625
' 2>&1 | grep -v -E '^I\w+ ' && exit 0
2726
done

hack/test_integration.sh

+13-2
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,31 @@ set -o nounset
55
set -o pipefail
66

77
source "kit/helper.sh"
8+
export KUBE_ROOT=$(dirname "$(readlink -f "$0")")/..
9+
export TERM=linux
10+
echo "KUBE_ROOT directory: $KUBE_ROOT"
811
cd "${WORKDIR}"
12+
echo "WORKDIR directory: $WORKDIR"
913

1014
TMPFILE="${TMPDIR}/test-integration.log"
1115

1216
# Etcd was added for testing in 1.21 and later
1317
function test-integration() {
1418
./build/shell.sh -c '
15-
./hack/install-etcd.sh
16-
PATH=$(pwd)/third_party/etcd:${PATH} make test-integration
19+
# generate .make/go-pkgdeps.mk
20+
go install ./cmd/...
21+
22+
# run test-integration
23+
KUBE_RUN_COPY_OUTPUT=y TERM=linux PATH=$(pwd)/third_party/etcd:${PATH} DBG_CODEGEN=1 make test-integration
1724
'
1825
}
1926

2027
test-integration 2>&1 | tee "${TMPFILE}" | grep -v -E '^I\w+ ' && exit 0
2128

29+
echo "-------print TMPFILE:"
30+
cat "${TMPFILE}"
31+
echo "-------TMPFILE end."
32+
2233
RETRY_CASES=$(cat "${TMPFILE}" | grep -E '^FAIL\s+k8s.io/kubernetes' | awk '{print $2}' || echo "")
2334

2435
TAG=$(helper::workdir::version)

0 commit comments

Comments
 (0)