Skip to content

Commit

Permalink
Merge pull request #1132 from rabi/func_parallel
Browse files Browse the repository at this point in the history
Run functional tests in parallel
  • Loading branch information
openshift-merge-bot[bot] authored Oct 14, 2024
2 parents 4642d04 + f0103e0 commit 357a9af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ golangci-lint:
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
$(LOCALBIN)/golangci-lint run --fix

MAX_PROCS := 5
NUM_PROCS := $(shell expr $(shell nproc --ignore 2) / 2)
PROCS ?= $(shell if [ $(NUM_PROCS) -gt $(MAX_PROCS) ]; then echo $(MAX_PROCS); else echo $(NUM_PROCS); fi)
PROC_CMD = --procs $(PROCS)

.PHONY: test
test: manifests generate gowork fmt vet envtest ginkgo ginkgo-run ## Run ginkgo tests with dependencies.

Expand Down

0 comments on commit 357a9af

Please sign in to comment.