prevents test-time installation that causes FTBFS.
authorDmitry Smirnov <onlyjob@debian.org>
Sun, 14 Jun 2020 20:12:29 +0000 (21:12 +0100)
committerFelix Geyer <fgeyer@debian.org>
Sun, 14 Jun 2020 20:12:29 +0000 (21:12 +0100)
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

engine/hack/test/unit

index d0e85f1ad144f91d13df470211537235f13924c0..ac27f68c309da93b07327d460218721815dc50b2 100755 (executable)
@@ -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 \