Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_test/
Date: Fri, 28 Aug 2020 19:02:06
Message-Id: 1598641191.929b5a3a85c3cf34cf967db579a45d8f3ee88564.ulm@gentoo
1 commit: 929b5a3a85c3cf34cf967db579a45d8f3ee88564
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 14 12:15:27 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 18:59:51 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=929b5a3a
7
8 ebuild-writing/functions/src_test: Add nonfatal to if conditions.
9
10 Closes: https://bugs.gentoo.org/722418
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 ebuild-writing/functions/src_test/text.xml | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/ebuild-writing/functions/src_test/text.xml b/ebuild-writing/functions/src_test/text.xml
17 index fbd0751..d214b15 100644
18 --- a/ebuild-writing/functions/src_test/text.xml
19 +++ b/ebuild-writing/functions/src_test/text.xml
20 @@ -34,9 +34,9 @@
21 <p>The default test phase in EAPI 6 is equivalent to the following:</p>
22 <codesample lang="ebuild">
23 src_test() {
24 - if emake check -n &amp;&gt; /dev/null; then
25 + if nonfatal emake check -n &amp;&gt; /dev/null; then
26 emake check
27 - elif emake test -n &amp;&gt; /dev/null; then
28 + elif nonfatal emake test -n &amp;&gt; /dev/null; then
29 emake test
30 fi
31 }