Skip to content

Commit f0103e0

Browse files
committed
Run functional tests in parallel
It seems to take lot of time running locally. Signed-off-by: rabi <ramishra@redhat.com>
1 parent 7456407 commit f0103e0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ golangci-lint:
167167
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
168168
$(LOCALBIN)/golangci-lint run --fix
169169

170+
MAX_PROCS := 5
171+
NUM_PROCS := $(shell expr $(shell nproc --ignore 2) / 2)
172+
PROCS ?= $(shell if [ $(NUM_PROCS) -gt $(MAX_PROCS) ]; then echo $(MAX_PROCS); else echo $(NUM_PROCS); fi)
173+
PROC_CMD = --procs $(PROCS)
174+
170175
.PHONY: test
171176
test: manifests generate gowork fmt vet envtest ginkgo ginkgo-run ## Run ginkgo tests with dependencies.
172177

0 commit comments

Comments
 (0)