Index: mercurial-1.0.1-r3.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-1.0.1-r3.ebuild,v retrieving revision 1.1 diff -u -r1.1 mercurial-1.0.1-r3.ebuild --- mercurial-1.0.1-r3.ebuild 4 Jul 2008 06:59:52 -0000 1.1 +++ mercurial-1.0.1-r3.ebuild 10 Jul 2008 10:47:20 -0000 @@ -81,6 +81,10 @@ } src_test() { + local testdir="${T}/tests/tests" + mkdir -p "${testdir}" || die + chmod 777 "${T}/tests" + chmod 777 "${T}/tests/tests" cd "${S}/tests/" rm -f *svn* # Subversion tests fail with 1.5 rm -f test-convert-baz* # GNU Arch baz @@ -89,8 +93,18 @@ rm -f test-convert-git* # git rm -f test-convert-mtn* # monotone rm -f test-convert-tla* # GNU Arch tla + rm -f test-command-template # Test is broken when ran as root + rm -f test-convert # Test is broken when ran as root + rm -f test-lock-badness # Test is broken when ran as root + rm -f test-permissions # Test is broken when ran as root + rm -f test-pull-permission # Test is broken when ran as root einfo "Running Mercurial tests ..." - python run-tests.py || die "test failed" + python \ + run-tests.py \ + --jobs=1 \ + --tmpdir="${testdir}" \ + --with-hg="${S}" \ + || die "test failed" } pkg_postinst() {