Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 2689fb0

Browse files
authored
Merge pull request #1076 from pohly/test-e2e-dlv
test: support running E2E test under dlv
2 parents acb22ba + a43cb1f commit 2689fb0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test.make

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ TEST_E2E_ARGS =
131131
empty:=
132132
space:= $(empty) $(empty)
133133

134+
GO_TEST_E2E = $(GO) test -count=1 -timeout 0 -v ./test/e2e -args
135+
ifneq ($(WITH_DLV),)
136+
GO_TEST_E2E = dlv test ./test/e2e --
137+
endif
138+
134139
# E2E testing relies on a running QEMU test cluster. It therefore starts it,
135140
# but because it might have been running already and might have to be kept
136141
# running to debug test failures, it doesn't stop it.
@@ -146,7 +151,7 @@ RUN_E2E = KUBECONFIG=`pwd`/_work/$(CLUSTER)/kube.config \
146151
TEST_CMD='$(TEST_CMD)' \
147152
GO='$(GO)' \
148153
TEST_PKGS='$(shell for i in ./pkg/pmem-device-manager ./pkg/imagefile/test; do if ls $$i/*_test.go 2>/dev/null >&2; then echo $$i; fi; done)' \
149-
$(GO) test -count=1 -timeout 0 -v ./test/e2e -args \
154+
$(GO_TEST_E2E) \
150155
-v=5 \
151156
-ginkgo.skip='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_SKIP_ALL))))' \
152157
-ginkgo.focus='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_FOCUS))))' \

0 commit comments

Comments
 (0)