From be43422ec74159f5cc95c3d0102145a5259b40c4 Mon Sep 17 00:00:00 2001 From: Ram Lavi Date: Wed, 6 Dec 2023 12:08:00 +0200 Subject: [PATCH] makefile, e2e: Add ginkgo timeout Currently the ginkgo is set to a default of 10m then it shuts the e2e down. In order to run realtime checkup with configurable timeout - adding ginkgo and test flags. Signed-off-by: Ram Lavi --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92df2ce8..2e02b165 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ KUBECONFIG ?= $(HOME)/.kube/config PROJECT_WORKING_DIR := /go/src/github.com/kiagnose/kubevirt-realtime-checkup +E2E_TEST_TIMEOUT ?= 1h +E2E_TEST_ARGS ?= -test.v -test.timeout=$(E2E_TEST_TIMEOUT) -ginkgo.v -ginkgo.timeout=$(E2E_TEST_TIMEOUT) $(E2E_TEST_EXTRA_ARGS) + all: lint unit-test build .PHONY: all @@ -75,7 +78,7 @@ e2e-test: -e TEST_CHECKUP_IMAGE=$(TEST_CHECKUP_IMAGE) \ -e VM_UNDER_TEST_CONTAINER_DISK_IMAGE=$(VM_UNDER_TEST_CONTAINER_DISK_IMAGE) \ $(GO_IMAGE_NAME):$(GO_IMAGE_TAG) \ - go test -v ./tests/... + go test -v ./tests/... $(E2E_TEST_ARGS) .PHONY: e2e-test lint: