commit:     4a9e5c9e088ffb1d8c4bdc861e45ec25bd6d1f5e
Author:     Virgil Dupras <hsoft <AT> hardcoded <DOT> net>
AuthorDate: Tue Sep  5 12:41:04 2017 +0000
Commit:     Amy Liffey <amynka <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 12:41:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a9e5c9e

app-emulation/lxd: Fix the running of tests

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 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app-emulation/lxd/lxd-2.17.ebuild 
b/app-emulation/lxd/lxd-2.17.ebuild
index 910e0b58c9d..4be344c8be2 100644
--- a/app-emulation/lxd/lxd-2.17.ebuild
+++ b/app-emulation/lxd/lxd-2.17.ebuild
@@ -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
 }
 

Reply via email to