From: Dmitry Smirnov Date: Sun, 14 Jun 2020 20:12:29 +0000 (+0100) Subject: prevents test-time installation that causes FTBFS. X-Git-Tag: archive/raspbian/18.09.1+dfsg1-7.1+rpi1+deb10u2^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c1b8367666924c7eca0a4de51165eb4a585451eb;p=docker.io.git prevents test-time installation that causes FTBFS. Last-Update: 2018-06-18 Forwarded: not-needed ~~~~ go test net: open /usr/lib/go-1.10/pkg/linux_amd64/net.a: permission denied ~~~~ Gbp-Pq: Name engine-test-noinstall.patch --- diff --git a/engine/hack/test/unit b/engine/hack/test/unit index d0e85f1a..ac27f68c 100755 --- a/engine/hack/test/unit +++ b/engine/hack/test/unit @@ -19,10 +19,6 @@ TESTDIRS="${TESTDIRS:-"./..."}" exclude_paths="/vendor/|/integration" pkg_list=$(go list $TESTDIRS | grep -vE "($exclude_paths)") -# install test dependencies once before running tests for each package. This -# significantly reduces the runtime. -go test -i "${BUILDFLAGS[@]}" $pkg_list - for pkg in $pkg_list; do go test "${BUILDFLAGS[@]}" \ -cover \