Skip to content

Commit

Permalink
makefile, e2e: Add ginkgo timeout
Browse files Browse the repository at this point in the history
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 <ralavi@redhat.com>
  • Loading branch information
RamLavi committed Dec 12, 2023
1 parent 4085928 commit e3b180f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e3b180f

Please sign in to comment.