Trying to fix Travis tests
This commit is contained in:
parent
d8a6571683
commit
f675575b66
|
@ -158,7 +158,7 @@ test: other-consul dev-build vet
|
||||||
@# hide it from travis as it exceeds their log limits and causes job to be
|
@# hide it from travis as it exceeds their log limits and causes job to be
|
||||||
@# terminated (over 4MB and over 10k lines in the UI). We need to output
|
@# terminated (over 4MB and over 10k lines in the UI). We need to output
|
||||||
@# _something_ to stop them terminating us due to inactivity...
|
@# _something_ to stop them terminating us due to inactivity...
|
||||||
{ go test $(GOTEST_FLAGS) -tags '$(GOTAGS)' -timeout 5m $(GOTEST_PKGS) 2>&1 ; echo $$? > exit-code ; } | tee test.log | egrep '^(ok|FAIL)\s*github.com/hashicorp/consul'
|
{ go test $(GOTEST_FLAGS) -tags '$(GOTAGS)' -timeout 7m $(GOTEST_PKGS) 2>&1 ; echo $$? > exit-code ; } | tee test.log | egrep '^(ok|FAIL)\s*github.com/hashicorp/consul'
|
||||||
@echo "Exit code: $$(cat exit-code)" >> test.log
|
@echo "Exit code: $$(cat exit-code)" >> test.log
|
||||||
@# This prints all the race report between ====== lines
|
@# This prints all the race report between ====== lines
|
||||||
@awk '/^WARNING: DATA RACE/ {do_print=1; print "=================="} do_print==1 {print} /^={10,}/ {do_print=0}' test.log || true
|
@awk '/^WARNING: DATA RACE/ {do_print=1; print "=================="} do_print==1 {print} /^={10,}/ {do_print=0}' test.log || true
|
||||||
|
|
Loading…
Reference in New Issue