mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Use date instead of time as time might be reserved word in sh. (#952)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -43,7 +43,9 @@ ifeq ($(TEST_TYPE),middleware)
|
|||||||
endif
|
endif
|
||||||
ifeq ($(TEST_TYPE),coverage)
|
ifeq ($(TEST_TYPE),coverage)
|
||||||
for d in `go list ./... | grep -v vendor`; do \
|
for d in `go list ./... | grep -v vendor`; do \
|
||||||
time go test -v -tags 'etcd k8s' -coverprofile=cover.out -covermode=atomic $$d || exit 1; \
|
t=$$(date +%s); \
|
||||||
|
go test -v -tags 'etcd k8s' -coverprofile=cover.out -covermode=atomic $$d || exit 1; \
|
||||||
|
echo "Coverage test $$d took $$(($$(date +%s)-t)) seconds"; \
|
||||||
if [ -f cover.out ]; then \
|
if [ -f cover.out ]; then \
|
||||||
cat cover.out >> coverage.txt; \
|
cat cover.out >> coverage.txt; \
|
||||||
rm cover.out; \
|
rm cover.out; \
|
||||||
|
|||||||
Reference in New Issue
Block a user