Skip to content

Commit b0336b5

Browse files
committed
build.make: more readable "make test" output
The introduction for each individual test looked like an actual command: test-subtree ./release-tools/verify-subtree.sh release-tools Directory 'release-tools' contains non-upstream changes: ... It's better to make it look like a shell comment and increase its visibility with a longer prefix: ### test-subtree: ./release-tools/verify-subtree.sh release-tools ...
1 parent 147892c commit b0336b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.make

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ test:
9797
.PHONY: test-go
9898
test: test-go
9999
test-go:
100-
@ echo; echo $@
100+
@ echo; echo "### $@:"
101101
go test `go list ./... | grep -v 'vendor' $(TEST_GO_FILTER_CMD)` $(TESTARGS)
102102

103103
.PHONY: test-vet
104104
test: test-vet
105105
test-vet:
106-
@ echo; echo $@
106+
@ echo; echo "### $@:"
107107
go vet `go list ./... | grep -v vendor $(TEST_VET_FILTER_CMD)`
108108

109109
.PHONY: test-fmt
110110
test: test-fmt
111111
test-fmt:
112-
@ echo; echo $@
112+
@ echo; echo "### $@:"
113113
files=$$(find . -name '*.go' | grep -v './vendor' $(TEST_FMT_FILTER_CMD)); \
114114
if [ $$(gofmt -d $$files | wc -l) -ne 0 ]; then \
115115
echo "formatting errors:"; \
@@ -120,5 +120,5 @@ test-fmt:
120120
.PHONY: test-subtree
121121
test: test-subtree
122122
test-subtree:
123-
@ echo; echo $@
123+
@ echo; echo "### $@:"
124124
./release-tools/verify-subtree.sh release-tools

0 commit comments

Comments
 (0)