From 6e8eb9ec6e14111f9bf230eb7051d5388f349a22 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Sun, 15 Jan 2023 22:00:59 +0800 Subject: [PATCH] fix test_cover script --- helper/test-cover.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper/test-cover.sh b/helper/test-cover.sh index a5e24dd..fb7bba1 100755 --- a/helper/test-cover.sh +++ b/helper/test-cover.sh @@ -2,7 +2,8 @@ set -x export DTM_DEBUG=1 echo "mode: count" > coverage.txt for store in redis boltdb mysql postgres; do - TEST_STORE=$store go test -failfast -covermode count -coverprofile=profile.out -coverpkg=github.com/dtm-labs/dtm/client/dtmcli,github.com/dtm-labs/dtm/client/dtmcli/dtmimp,github.com/dtm-labs/logger,github.com/dtm-labs/dtm/client/dtmgrpc,github.com/dtm-labs/dtm/client/workflow,github.com/dtm-labs/dtm/client/dtmgrpc/dtmgimp,github.com/dtm-labs/dtm/dtmsvr,dtmsvr/config,github.com/dtm-labs/dtm/dtmsvr/storage,github.com/dtm-labs/dtm/dtmsvr/storage/boltdb,github.com/dtm-labs/dtm/dtmsvr/storage/redis,github.com/dtm-labs/dtm/dtmsvr/storage/registry,github.com/dtm-labs/dtm/dtmsvr/storage/sql,github.com/dtm-labs/dtm/dtmutil -gcflags=-l ./... || echo "TEST_STORE=$store" && exit 1 + TEST_STORE=$store go test -failfast -covermode count -coverprofile=profile.out -coverpkg=github.com/dtm-labs/dtm/client/dtmcli,github.com/dtm-labs/dtm/client/dtmcli/dtmimp,github.com/dtm-labs/logger,github.com/dtm-labs/dtm/client/dtmgrpc,github.com/dtm-labs/dtm/client/workflow,github.com/dtm-labs/dtm/client/dtmgrpc/dtmgimp,github.com/dtm-labs/dtm/dtmsvr,dtmsvr/config,github.com/dtm-labs/dtm/dtmsvr/storage,github.com/dtm-labs/dtm/dtmsvr/storage/boltdb,github.com/dtm-labs/dtm/dtmsvr/storage/redis,github.com/dtm-labs/dtm/dtmsvr/storage/registry,github.com/dtm-labs/dtm/dtmsvr/storage/sql,github.com/dtm-labs/dtm/dtmutil -gcflags=-l ./... || exit 1 + echo "TEST_STORE=$store finished" if [ -f profile.out ]; then cat profile.out | grep -v 'mode:' >> coverage.txt echo > profile.out