File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ time "$coverage/builds.sh" --cache "$dir/cache-builds.json" "$dir/sources.json"
72
72
time " $coverage /builds.sh" --cache=" $dir /cache-builds.json" " $dir /sources.json" > " $dir /builds.json"
73
73
74
74
# test "lookup" code for more edge cases
75
- " $dir /../.go-env.sh" go build -cover -trimpath -o " $coverage /bin/lookup" ./cmd/lookup
75
+ " $dir /../.go-env.sh" go build -coverpkg=./... -trimpath -o " $coverage /bin/lookup" ./cmd/lookup
76
76
lookup=(
77
77
# force a config blob lookup for platform object creation (and top-level Docker media type!)
78
78
' tianon/test@sha256:2f19ce27632e6baf4ebb1b582960d68948e52902c8cfac10133da0058f1dab23'
@@ -130,7 +130,7 @@ lookup=(
130
130
if [ -n " $doDeploy " ]; then
131
131
# also test "deploy" (optional, disabled by default, because it's a much heavier test)
132
132
133
- " $dir /../.go-env.sh" go build -cover -trimpath -o " $coverage /bin/deploy" ./cmd/deploy
133
+ " $dir /../.go-env.sh" go build -coverpkg=./... -trimpath -o " $coverage /bin/deploy" ./cmd/deploy
134
134
135
135
docker rm -vf meta-scripts-test-registry & > /dev/null || :
136
136
trap ' docker rm -vf meta-scripts-test-registry &> /dev/null || :' EXIT
@@ -220,7 +220,7 @@ if [ -n "$doDeploy" ]; then
220
220
fi
221
221
222
222
# Go tests
223
- " $dir /../.go-env.sh" go test -cover ./... -args -test.gocoverdir=" $GOCOVERDIR "
223
+ " $dir /../.go-env.sh" go test -coverpkg=./... ./... -args -test.gocoverdir=" $GOCOVERDIR "
224
224
225
225
# combine the coverage data into the "legacy" coverage format (understood by "go tool cover") and pre-generate HTML for easier digestion of the data
226
226
" $dir /../.go-env.sh" go tool covdata textfmt -i " $GOCOVERDIR " -o " $coverage /coverage.txt"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ dir="$(dirname "$dir")"
17
17
if ( cd " $dir " && ./.any-go-nt.sh " $bin " ); then
18
18
{
19
19
echo " building '$bin '"
20
- " $dir /.go-env.sh" go build ${GOCOVERDIR: +-cover } -v -trimpath -o " $bin " ./cmd/builds
20
+ " $dir /.go-env.sh" go build ${GOCOVERDIR: +-coverpkg=. / ... } -v -trimpath -o " $bin " ./cmd/builds
21
21
ls -l " $bin "
22
22
} >&2
23
23
fi
You can’t perform that action at this time.
0 commit comments