engine-test-noinstall
authorDmitry Smirnov <onlyjob@debian.org>
Sat, 26 Jan 2019 01:54:38 +0000 (01:54 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 26 Jan 2019 01:54:38 +0000 (01:54 +0000)
~~~~
 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 \