app-emulation/lxd: Fix the running of tests
authorVirgil Dupras <hsoft@hardcoded.net>
Tue, 5 Sep 2017 12:41:04 +0000 (08:41 -0400)
committerAmy Liffey <amynka@gentoo.org>
Thu, 21 Sep 2017 12:41:18 +0000 (14:41 +0200)
They still fail, but at least they run. This also removes our dependency on "golang-build" eclass.

Closes:#5621

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-emulation/lxd/lxd-2.17.ebuild

index 910e0b58c9d9c3fc9f0f21788948918aa2f030e8..4be344c8be226a63352b8227beb89c02721c4b5d 100644 (file)
@@ -47,7 +47,7 @@ KEYWORDS="~amd64"
 
 IUSE="+daemon +ipv6 nls test"
 
-inherit bash-completion-r1 golang-build linux-info systemd user golang-vcs-snapshot
+inherit bash-completion-r1 linux-info systemd user golang-vcs-snapshot
 
 SRC_URI="${ARCHIVE_URI}
        ${EGO_VENDOR_URI}"
@@ -140,8 +140,10 @@ src_compile() {
 
 src_test() {
        if use daemon; then
-               # Go native tests should succeed
-               golang-build_src_test
+               export GOPATH="${S}"
+               cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
+
+               emake check
        fi
 }