1 |
commit: ebbffbddc263b9dc81fc8081165f2c26dac945f8 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 24 19:39:37 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 24 19:40:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebbffbdd |
7 |
|
8 |
dev-python/pycparser: skip tests if cpp is not in PATH |
9 |
|
10 |
Bug: https://bugs.gentoo.org/719934 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
dev-python/pycparser/pycparser-2.20.ebuild | 2 ++ |
14 |
1 file changed, 2 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pycparser/pycparser-2.20.ebuild b/dev-python/pycparser/pycparser-2.20.ebuild |
17 |
index 4b222c379ee..12172c1c82e 100644 |
18 |
--- a/dev-python/pycparser/pycparser-2.20.ebuild |
19 |
+++ b/dev-python/pycparser/pycparser-2.20.ebuild |
20 |
@@ -41,6 +41,8 @@ python_compile() { |
21 |
} |
22 |
|
23 |
python_test() { |
24 |
+ # Skip tests if cpp is not in PATH |
25 |
+ type -P cpp >/dev/null || return 0 |
26 |
# change workdir to avoid '.' import |
27 |
cd tests || die |
28 |
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" |