commit:     00bd2f9524ff99b2d17f1cc79c9d5b678e1576f7
Author:     Graeme Lawes <graemelawes <AT> gmail <DOT> com>
AuthorDate: Sun Jul  2 13:48:26 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Sep  2 15:20:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bd2f95

sys-cluster/teleport: fix src_test, restrict tests

src_test needs the same GOPATH as src_compile to run.  Some tests are
currently failing, so add RESTRICT=test until upstream devs can fix
tests.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=623430

 sys-cluster/teleport/teleport-2.2.0.ebuild | 5 +++++
 sys-cluster/teleport/teleport-2.2.1.ebuild | 5 +++++
 sys-cluster/teleport/teleport-9999.ebuild  | 4 ++++
 3 files changed, 14 insertions(+)

diff --git a/sys-cluster/teleport/teleport-2.2.0.ebuild 
b/sys-cluster/teleport/teleport-2.2.0.ebuild
index 3fafc3ed333..90fddb344c0 100644
--- a/sys-cluster/teleport/teleport-2.2.0.ebuild
+++ b/sys-cluster/teleport/teleport-2.2.0.ebuild
@@ -21,6 +21,7 @@ fi
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
+RESTRICT="test"
 
 DEPEND="
        app-arch/zip
@@ -51,3 +52,7 @@ src_install() {
        systemd_dounit "${FILESDIR}"/${PN}.service
        systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
 }
+
+src_test() {
+       GOPATH="${S}" emake -C src/${EGO_PN%/*} test
+}

diff --git a/sys-cluster/teleport/teleport-2.2.1.ebuild 
b/sys-cluster/teleport/teleport-2.2.1.ebuild
index 3fafc3ed333..90fddb344c0 100644
--- a/sys-cluster/teleport/teleport-2.2.1.ebuild
+++ b/sys-cluster/teleport/teleport-2.2.1.ebuild
@@ -21,6 +21,7 @@ fi
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
+RESTRICT="test"
 
 DEPEND="
        app-arch/zip
@@ -51,3 +52,7 @@ src_install() {
        systemd_dounit "${FILESDIR}"/${PN}.service
        systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
 }
+
+src_test() {
+       GOPATH="${S}" emake -C src/${EGO_PN%/*} test
+}

diff --git a/sys-cluster/teleport/teleport-9999.ebuild 
b/sys-cluster/teleport/teleport-9999.ebuild
index 3e870fac4bd..a16c3c13370 100644
--- a/sys-cluster/teleport/teleport-9999.ebuild
+++ b/sys-cluster/teleport/teleport-9999.ebuild
@@ -49,3 +49,7 @@ src_install() {
        systemd_dounit "${FILESDIR}"/${PN}.service
        systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service
 }
+
+src_test() {
+       GOPATH="${S}" emake -C src/${EGO_PN%/*} test
+}

Reply via email to