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 &> /dev/null; then |
25 |
+ if nonfatal emake check -n &> /dev/null; then |
26 |
emake check |
27 |
- elif emake test -n &> /dev/null; then |
28 |
+ elif nonfatal emake test -n &> /dev/null; then |
29 |
emake test |
30 |
fi |
31 |
} |