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:
Paul Banks 2018-02-20 13:16:53 +00:00
parent 4c90fbfd90
commit e416f828dc
No known key found for this signature in database
GPG Key ID: C25A851A849B8221
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ branches:
- master - master
script: script:
- GOTEST_FLAGS="-p 2 -parallel 2" make test - GOTEST_FLAGS="-p 1 -parallel 1" make test
sudo: false sudo: false

View File

@ -67,7 +67,7 @@ test: other-consul dev-build vet
@echo "--> Running go test" @echo "--> Running go test"
@rm -f test.log exit-code @rm -f test.log exit-code
go test -tags '$(GOTAGS)' -i ./... 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 @echo "Exit code: $$(cat exit-code)" >> test.log
@grep -A5 'DATA RACE' test.log || true @grep -A5 'DATA RACE' test.log || true
@grep -A10 'panic: test timed out' test.log || true @grep -A10 'panic: test timed out' test.log || true