From bc9bb9e4ae3fd72632210eae2f01d1c13ea65b83 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Mon, 13 Apr 2015 20:37:12 +0100 Subject: [PATCH] tempfile is a deprecated debianism As noted in its man page. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 496eb684..b5844b77 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ $(DOCKER_DISTRIB): tests: echo "mode: count" > profile.cov for dir in $$(find . -type f -name '*_test.go' | xargs -n1 dirname | sort -u); do \ - output=$$(tempfile -p cover); \ + output=$$(mktemp cover.XXXXXXXXXX); \ go test -tags netgo -covermode=count -coverprofile=$$output $$dir; \ if [ -f $$output ]; then \ tail -n +2 <$$output >>profile.cov; \