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