aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-02 15:10:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-02 15:10:48 +0000
commitfd4316af0f8760722c05f81870137e7066365ab3 (patch)
treec25fa77ec9016b800a31d1ec17bdeac4df30d238
parentbcbbce4d36b3ca0b990d50758c84f508c4a9883d (diff)
downloadpaludis-fd4316af0f8760722c05f81870137e7066365ab3.tar.gz
paludis-fd4316af0f8760722c05f81870137e7066365ab3.tar.xz
Be more verbose on test failures
-rw-r--r--doc/doc_known_issues.doxygen7
-rwxr-xr-xebuild/ebuild.bash5
-rw-r--r--ebuild/src_test.bash6
3 files changed, 17 insertions, 1 deletions
diff --git a/doc/doc_known_issues.doxygen b/doc/doc_known_issues.doxygen
index c6fba3b..c62c2a5 100644
--- a/doc/doc_known_issues.doxygen
+++ b/doc/doc_known_issues.doxygen
@@ -55,12 +55,17 @@ Unfortunately not all package maintainers care about making their package's test
suite work. This is a nuisance, a) because it makes things much harder for arch
teams and b) because it makes it harder for users to catch bugs.
+At this stage, you should not consider filing a bug about packages whose test
+phases fail. This is something that is being handled by the Gentoo QA team and
+various arch teams.
+
\subsection KnownIssuesRootSandbox Sandbox violations when ROOT!=/
Problem: Sandbox violations when ROOT!=/
Workaround: Paludis enforces ROOT. However, some packages don't honour ROOT. To
-temporarily disable sandbox for these packages, <code>export SANDBOX_PREDICT=/</code> .
+temporarily disable sandbox for these packages, <code>export SANDBOX_PREDICT=/</code>
+or <code>export SANDBOX_WRITE=/</code> .
\section KnownNonIssuesPortageThings Things Portage Does
diff --git a/ebuild/ebuild.bash b/ebuild/ebuild.bash
index db7700a..8978489 100755
--- a/ebuild/ebuild.bash
+++ b/ebuild/ebuild.bash
@@ -65,6 +65,11 @@ diefunc()
done
echo 1>&2
+ if [[ -n "${PALUDIS_EXTRA_DIE_MESSAGE}" ]] ; then
+ echo "${PALUDIS_EXTRA_DIE_MESSAGE}" 1>&2
+ echo 1>&2
+ fi
+
kill ${EBUILD_KILL_PID}
exit 249
}
diff --git a/ebuild/src_test.bash b/ebuild/src_test.bash
index 185fae7..ab07a0e 100644
--- a/ebuild/src_test.bash
+++ b/ebuild/src_test.bash
@@ -44,6 +44,12 @@ ebuild_f_test()
local old_sandbox_predict="${SANDBOX_PREDICT}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_PREDICT="${SANDBOX_PREDICT+${SANDBOX_PREDICT}:}/"
+ export PALUDIS_EXTRA_DIE_MESSAGE="
+!!! This package failed inside the test phase. You should read
+!!! http://paludis.berlios.de/KnownIssues.html
+!!! for more information on packages with test phase failures.
+"
+
if [[ -d "${S}" ]]; then
cd "${S}" || die "cd to \${S} (\"${S}\") failed"
fi