From cdd67deeafd3f1ef153b2cb45389a6a27068cdb0 Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Mon, 29 Nov 2021 16:31:41 +0800 Subject: [PATCH] [skip ci] Update timeout for e2e testing (#12349) Signed-off-by: Jenny Li --- tests/scripts/ci_e2e.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/scripts/ci_e2e.sh b/tests/scripts/ci_e2e.sh index ea736ed97a..3ee924d00e 100755 --- a/tests/scripts/ci_e2e.sh +++ b/tests/scripts/ci_e2e.sh @@ -52,7 +52,10 @@ mkdir -p ${CI_LOG_PATH} fi trace "prepare e2e test" install_pytest_requirements -pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \ - --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-} -trace "e2e test" "timeout" "${TEST_TIMEOUT:-}" `pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \ - --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-}` +if [[ -n "${TEST_TIMEOUT:-}" ]]; then + timeout "${TEST_TIMEOUT}" pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \ + --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-} +else + pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \ + --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-} +fi \ No newline at end of file