Makefile: run tests sequentially

Our tests are not designed to be run in parallel, for example there are
multiple tests in disparate packages all trying to run textnextnethttp
which will compete for access to port 9191, we shouldn't let tests run
in parallel.
This commit is contained in:
aarzilli
2017-06-22 15:47:28 +02:00
committed by Derek Parker
parent 189872a7c7
commit e63b3eb6fd

View File

@ -58,12 +58,12 @@ endif
test: check-cert test: check-cert
ifeq "$(TRAVIS)" "true" ifeq "$(TRAVIS)" "true"
ifdef DARWIN ifdef DARWIN
sudo -E go test -v $(ALL_PACKAGES) sudo -E go test -p 1 -v $(ALL_PACKAGES)
else else
go test $(TEST_FLAGS) $(BUILD_FLAGS) $(ALL_PACKAGES) go test -p 1 $(TEST_FLAGS) $(BUILD_FLAGS) $(ALL_PACKAGES)
endif endif
else else
go test $(TEST_FLAGS) $(BUILD_FLAGS) $(ALL_PACKAGES) go test -p 1 $(TEST_FLAGS) $(BUILD_FLAGS) $(ALL_PACKAGES)
endif endif
ifneq "$(shell which lldb-server)" "" ifneq "$(shell which lldb-server)" ""
@echo @echo