summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-09-11 12:03:06 -0700
committerZac Medico <zmedico@gentoo.org>2015-09-11 12:04:10 -0700
commitadbb2eb4a2521ace1359808a05f8832248bf88d3 (patch)
tree62175ec79a51bef50e6661acea0a484117f90868 /dev-go/go-tools
parentdev-lang/ekopath: Snapshot bump (diff)
downloadgentoo-adbb2eb4a2521ace1359808a05f8832248bf88d3.tar.gz
gentoo-adbb2eb4a2521ace1359808a05f8832248bf88d3.tar.bz2
gentoo-adbb2eb4a2521ace1359808a05f8832248bf88d3.zip
dev-go/go-tools: fix tests and src_prepare failure for 0_pre20150902
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-go/go-tools')
-rw-r--r--dev-go/go-tools/go-tools-0_pre20150902.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-go/go-tools/go-tools-0_pre20150902.ebuild b/dev-go/go-tools/go-tools-0_pre20150902.ebuild
index aa176ff4d38d..7d598bdab2bf 100644
--- a/dev-go/go-tools/go-tools-0_pre20150902.ebuild
+++ b/dev-go/go-tools/go-tools-0_pre20150902.ebuild
@@ -56,8 +56,6 @@ src_prepare() {
-i src/${go_src}/go/types/stdlib_test.go || die
sed -e 's:TestRepoRootForImportPath(:_\0:' \
-i src/${go_src}/go/vcs/vcs_test.go || die
- sed -e 's:TestStdlib(:_\0:' \
- -i src/${go_src}/refactor/lexical/lexical_test.go || die
# Add favicon to the godoc web interface (bug 551030)
cp "${DISTDIR}"/go-favicon.ico "src/${go_src}/godoc/static/favicon.ico" ||
@@ -77,6 +75,14 @@ src_compile() {
golang-build_src_compile
}
+src_test() {
+ # Create a writable GOROOT in order to avoid sandbox violations.
+ cp -sR "$(go env GOROOT)" "${T}/goroot" || die
+ mkdir -p "${T}/goroot/test" || die
+ GOROOT="${T}/goroot" golang-build_src_test
+ rm -rf "${T}/goroot"
+}
+
src_install() {
# Create a writable GOROOT in order to avoid sandbox violations.
cp -sR "$(go env GOROOT)" "${T}/goroot" || die