tempfile is a deprecated debianism
As noted in its man page.
This commit is contained in:
1 parent
805005e632
commit
bc9bb9e4ae
1 file changed
+1
-1
@@ -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; \
|
||||
|
||||
Reference in new issue
Block a user