Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21fa24c

Browse files
authored
Again tee messes up with the exit code (istio#4220)
* Again tee messes up with the exit code * Back to tee - circle will timeout without output. Use pipefail
1 parent 30d4eff commit 21fa24c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/istio.mk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ e2e_pilot_noauth: istioctl generate_yaml
9393
go test -v -timeout 20m ./tests/e2e/tests/pilot ${E2E_ARGS} -hub ${HUB} -tag ${TAG} --skip-cleanup -mixer=true -auth=disable -use-sidecar-injector=false
9494

9595
test/minikube/auth/e2e_simple:
96-
go test -v -timeout 20m ./tests/e2e/tests/simple -args --auth_enable=true \
96+
set -o pipefail; go test -v -timeout 20m ./tests/e2e/tests/simple -args --auth_enable=true \
9797
--skip_cleanup -use_local_cluster -cluster_wide -test.v \
9898
${E2E_ARGS} ${EXTRA_E2E_ARGS} \
9999
${TESTOPTS} | tee ${OUT_DIR}/tests/test-report-auth-simple.raw
100100

101101
test/minikube/noauth/e2e_simple:
102102
mkdir -p ${OUT_DIR}/tests
103-
go test -v -timeout 20m ./tests/e2e/tests/simple -args --auth_enable=false \
103+
set -o pipefail; go test -v -timeout 20m ./tests/e2e/tests/simple -args --auth_enable=false \
104104
--skip_cleanup -use_local_cluster -cluster_wide -test.v \
105105
${E2E_ARGS} ${EXTRA_E2E_ARGS} \
106106
${TESTOPTS} | tee ${OUT_DIR}/tests/test-report-noauth-simple.raw
@@ -111,7 +111,7 @@ test/minikube/auth/e2e_pilot: istioctl
111111
mkdir -p ${OUT_DIR}/tests
112112
kubectl create ns pilot-auth-system || true
113113
kubectl create ns pilot-auth-test || true
114-
go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
114+
set -o pipefail; go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
115115
-hub ${HUB} -tag ${TAG} \
116116
--skip-cleanup --mixer=true --auth_enable=true \
117117
-errorlogsdir=${OUT_DIR}/logs \
@@ -129,9 +129,9 @@ test/minikube/noauth/e2e_pilot: istioctl
129129
mkdir -p ${OUT_DIR}/logs
130130
mkdir -p ${OUT_DIR}/tests
131131
# istio-system and pilot system are not compatible. Once we merge the setup it should work.
132-
kubectl create ns pilot-system-test || true
133-
kubectl create ns pilot-test || true
134-
go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
132+
kubectl create ns pilot-noauth-system || true
133+
kubectl create ns pilot-noauth || true
134+
set -o pipefail; go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
135135
-hub ${HUB} -tag ${TAG} \
136136
--skip-cleanup --mixer=true \
137137
-errorlogsdir=${OUT_DIR}/logs \
@@ -148,9 +148,9 @@ test/minikube/auth/e2e_pilot_alpha1: istioctl
148148
mkdir -p ${OUT_DIR}/logs
149149
mkdir -p ${OUT_DIR}/tests
150150
# istio-system and pilot system are not compatible. Once we merge the setup it should work.
151-
kubectl create ns pilot-system-test || true
151+
kubectl create ns pilot-auth-system || true
152152
kubectl create ns pilot-test || true
153-
go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
153+
set -o pipefail; go test -test.v -timeout 20m ./tests/e2e/tests/pilot -args \
154154
-hub ${HUB} -tag ${TAG} \
155155
--skip-cleanup --mixer=true \
156156
-errorlogsdir=${OUT_DIR}/logs \

0 commit comments

Comments
 (0)