From 2f5f8be99d4e8bf2ff55d5e2e2b4466187464528 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Wed, 4 Oct 2017 01:12:35 +0000 Subject: [PATCH] Add node e2e test timeout. Signed-off-by: Lantao Liu --- hack/test-e2e-node.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/test-e2e-node.sh b/hack/test-e2e-node.sh index fe02927dc..d5e379421 100755 --- a/hack/test-e2e-node.sh +++ b/hack/test-e2e-node.sh @@ -30,6 +30,8 @@ export SKIP=${SKIP:-${DEFAULT_SKIP}} REPORT_DIR=${REPORT_DIR:-"/tmp/test-e2e-node"} # UPLOAD_LOG indicates whether to upload test log to gcs. UPLOAD_LOG=${UPLOAD_LOG:-false} +# TIMEOUT is the timeout of the test. +TIMEOUT=${TIMEOUT:-"40m"} # Check GOPATH if [[ -z "${GOPATH}" ]]; then @@ -71,7 +73,7 @@ git checkout ${KUBERNETES_VERSION} mkdir -p ${REPORT_DIR} test_setup ${REPORT_DIR} -make test-e2e-node \ +timeout "${TIMEOUT}" make test-e2e-node \ RUNTIME=remote \ CONTAINER_RUNTIME_ENDPOINT=unix://${CRICONTAINERD_SOCK} \ ARTIFACTS=${REPORT_DIR} \