Fix EE Short tests (#6585)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
86fe96a6e2
Коммит
414c2fd2bf
3
Makefile
3
Makefile
@@ -53,6 +53,7 @@ DIST_PATH=$(DIST_ROOT)/mattermost
|
|||||||
TESTS=.
|
TESTS=.
|
||||||
|
|
||||||
TESTFLAGS ?= -short
|
TESTFLAGS ?= -short
|
||||||
|
TESTFLAGSEE ?= -test.short
|
||||||
|
|
||||||
# Packages lists
|
# Packages lists
|
||||||
TE_PACKAGES=$(shell go list ./... | grep -v vendor)
|
TE_PACKAGES=$(shell go list ./... | grep -v vendor)
|
||||||
@@ -269,7 +270,7 @@ ifeq ($(BUILD_ENTERPRISE_READY),true)
|
|||||||
$(GO) test $(GOFLAGS) -run=$(TESTS) -covermode=count -coverpkg=$(ALL_PACKAGES_COMMA) -c $$package; \
|
$(GO) test $(GOFLAGS) -run=$(TESTS) -covermode=count -coverpkg=$(ALL_PACKAGES_COMMA) -c $$package; \
|
||||||
if [ -f $$(basename $$package).test ]; then \
|
if [ -f $$(basename $$package).test ]; then \
|
||||||
echo "Testing "$$package; \
|
echo "Testing "$$package; \
|
||||||
./$$(basename $$package).test -test.v $(TESTFLAGS) -test.timeout=2000s -test.coverprofile=cprofile.out || exit 1; \
|
./$$(basename $$package).test -test.v $(TESTFLAGSEE) -test.timeout=2000s -test.coverprofile=cprofile.out || exit 1; \
|
||||||
if [ -f cprofile.out ]; then \
|
if [ -f cprofile.out ]; then \
|
||||||
tail -n +2 cprofile.out >> cover.out; \
|
tail -n +2 cprofile.out >> cover.out; \
|
||||||
rm cprofile.out; \
|
rm cprofile.out; \
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user