sys-cluster/teleport: fix src_test, restrict tests
authorGraeme Lawes <graemelawes@gmail.com>
Sun, 2 Jul 2017 13:48:26 +0000 (09:48 -0400)
committerMichael Palimaka <kensington@gentoo.org>
Sat, 2 Sep 2017 15:20:29 +0000 (01:20 +1000)
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
sys-cluster/teleport/teleport-2.2.1.ebuild
sys-cluster/teleport/teleport-9999.ebuild

index 3fafc3ed333d56cf0dd1373e4160eb7e0b49b819..90fddb344c0c59ba9585c2cf6332148ad2237449 100644 (file)
@@ -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
+}
index 3fafc3ed333d56cf0dd1373e4160eb7e0b49b819..90fddb344c0c59ba9585c2cf6332148ad2237449 100644 (file)
@@ -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
+}
index 3e870fac4bd4db537d227a4950eb48f94a351db4..a16c3c133705a813e61255688638ca09a0e26e6e 100644 (file)
@@ -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
+}