mirror of https://github.com/status-im/consul.git
Output from test as we run to stop travis killing us and try no parallelism to avoid timing issues on their contended CPUs
This commit is contained in:
parent
4c90fbfd90
commit
e416f828dc
|
@ -8,6 +8,6 @@ branches:
|
|||
- master
|
||||
|
||||
script:
|
||||
- GOTEST_FLAGS="-p 2 -parallel 2" make test
|
||||
- GOTEST_FLAGS="-p 1 -parallel 1" make test
|
||||
|
||||
sudo: false
|
||||
|
|
|
@ -67,7 +67,7 @@ test: other-consul dev-build vet
|
|||
@echo "--> Running go test"
|
||||
@rm -f test.log exit-code
|
||||
go test -tags '$(GOTAGS)' -i ./...
|
||||
go test $(GOTEST_FLAGS) -tags '$(GOTAGS)' -timeout 5m -v ./... &>test.log ; echo $$? > exit-code
|
||||
{ go test $(GOTEST_FLAGS) -tags '$(GOTAGS)' -timeout 5m -v ./... 2>&1 ; echo $$? > exit-code ; } | tee test.log
|
||||
@echo "Exit code: $$(cat exit-code)" >> test.log
|
||||
@grep -A5 'DATA RACE' test.log || true
|
||||
@grep -A10 'panic: test timed out' test.log || true
|
||||
|
|
Loading…
Reference in New Issue