summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-03-31 01:02:19 -0700
committerZac Medico <zmedico@gentoo.org>2016-03-31 01:09:04 -0700
commita2a3f832db860d5ae7488425067542316083a52b (patch)
treec4ab8aea40f6e9c45affc7452cdb8b94fd55da24 /dev-go/go-crypto
parentdev-go/go-crypto: fix tests for bug 577908 (diff)
downloadgentoo-a2a3f832db860d5ae7488425067542316083a52b.tar.gz
gentoo-a2a3f832db860d5ae7488425067542316083a52b.tar.bz2
gentoo-a2a3f832db860d5ae7488425067542316083a52b.zip
dev-go/go-crypto: src_test: add missing die
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-go/go-crypto')
-rw-r--r--dev-go/go-crypto/go-crypto-0_pre20160126.ebuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/dev-go/go-crypto/go-crypto-0_pre20160126.ebuild b/dev-go/go-crypto/go-crypto-0_pre20160126.ebuild
index 799b98bf93b..d02d1e91435 100644
--- a/dev-go/go-crypto/go-crypto-0_pre20160126.ebuild
+++ b/dev-go/go-crypto/go-crypto-0_pre20160126.ebuild
@@ -24,6 +24,20 @@ IUSE=""
DEPEND=""
RDEPEND=""
+src_prepare() {
+ # disable broken tests
+ sed -e 's:TestAgentForward(:_\0:' \
+ -i src/${EGO_SRC}/ssh/test/agent_unix_test.go || die
+ sed -e 's:TestRunCommandSuccess(:_\0:' \
+ -e 's:TestRunCommandStdin(:_\0:' \
+ -e 's:TestRunCommandStdinError(:_\0:' \
+ -e 's:TestRunCommandWeClosed(:_\0:' \
+ -e 's:TestFuncLargeRead(:_\0:' \
+ -e 's:TestKeyChange(:_\0:' \
+ -e 's:TestValidTerminalMode(:_\0:' \
+ -i src/${EGO_SRC}/ssh/test/session_test.go || die
+}
+
src_compile() {
# Create a writable GOROOT in order to avoid sandbox violations.
cp -sR "$(go env GOROOT)" "${T}/goroot" || die
@@ -38,5 +52,5 @@ src_compile() {
src_test() {
# Exclude $(get_golibdir_gopath) from GOPATH
- go test -v -work -x "${EGO_PN}"
+ go test -v -work -x "${EGO_PN}" || die
}