summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-05-24 15:39:37 -0400
committerMike Gilbert <floppym@gentoo.org>2020-05-24 15:40:21 -0400
commitebbffbddc263b9dc81fc8081165f2c26dac945f8 (patch)
treef215eccdf5f7c529b77ab385165bca2bde954505 /dev-python/pycparser
parentmail-mta/protonmail-bridge-bin-1.2.7: version bump (diff)
downloadgentoo-ebbffbddc263b9dc81fc8081165f2c26dac945f8.tar.gz
gentoo-ebbffbddc263b9dc81fc8081165f2c26dac945f8.tar.bz2
gentoo-ebbffbddc263b9dc81fc8081165f2c26dac945f8.zip
dev-python/pycparser: skip tests if cpp is not in PATH
Bug: https://bugs.gentoo.org/719934 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-python/pycparser')
-rw-r--r--dev-python/pycparser/pycparser-2.20.ebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev-python/pycparser/pycparser-2.20.ebuild b/dev-python/pycparser/pycparser-2.20.ebuild
index 4b222c379ee4..12172c1c82ea 100644
--- a/dev-python/pycparser/pycparser-2.20.ebuild
+++ b/dev-python/pycparser/pycparser-2.20.ebuild
@@ -41,6 +41,8 @@ python_compile() {
}
python_test() {
+ # Skip tests if cpp is not in PATH
+ type -P cpp >/dev/null || return 0
# change workdir to avoid '.' import
cd tests || die
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"