Skip to content

Commit

Permalink
Makefile: limit test concurrency. (pingcap#4535)
Browse files Browse the repository at this point in the history
The test runs multiple process to test all packages, and each process takes up to 700M memory,
The CI VM make OOM if we don't limit the test concurrency.
  • Loading branch information
coocood authored Sep 15, 2017
1 parent 49e9b63 commit 51d80e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export PATH := $(path_to_add):$(PATH)

GO := go
GOBUILD := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=0 $(GO) build
GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test
GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test -p 3
OVERALLS := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 overalls
GOVERALLS := goveralls

Expand Down

0 comments on commit 51d80e1

Please sign in to comment.