aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-05-07 20:54:04 +0200
committerGöktürk Yüksek <gokturk@gentoo.org>2017-08-24 14:57:47 -0400
commiteb9ba924567615e02a0e4e9f089ad93326b7a3e8 (patch)
treeb1a6f75d3f111e251ad7755985393250462c2640
parentebuild-writing/.../src_test: Remove use of X11 from reasons to skip tests (diff)
downloaddevmanual-eb9ba924567615e02a0e4e9f089ad93326b7a3e8.tar.gz
devmanual-eb9ba924567615e02a0e4e9f089ad93326b7a3e8.tar.bz2
devmanual-eb9ba924567615e02a0e4e9f089ad93326b7a3e8.zip
ebuild-writing/.../src_test: Do not suggest blanking src_test()
The only reasonable reason to blank src_test() out would be if the check or test target represented something completely different from tests. If the tests are broken, the only proper way to disable them is using RESTRICT=test, as it clearly indicates that they were explicitly disabled.
-rw-r--r--ebuild-writing/functions/src_test/text.xml15
1 files changed, 2 insertions, 13 deletions
diff --git a/ebuild-writing/functions/src_test/text.xml b/ebuild-writing/functions/src_test/text.xml
index 3790195..f43fae0 100644
--- a/ebuild-writing/functions/src_test/text.xml
+++ b/ebuild-writing/functions/src_test/text.xml
@@ -107,19 +107,8 @@ suite is extremely helpful for arch maintainers.
<title>Skipping Tests</title>
<body>
<p>
-Sometimes it is necessary to skip tests entirely. This can be done
-using a dummy <c>src_test</c> function:
-</p>
-
-<codesample lang="ebuild">
-src_test() {
- # Tests don't even remotely work inside portage
- true
-}
-</codesample>
-
-<p>
-Another option would be to set <c>RESTRICT="test"</c> in the ebuild.
+Sometimes it is necessary to skip tests entirely. This can be done by
+setting <c>RESTRICT="test"</c> in the ebuild.
</p>
<note>