diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-05-24 15:39:37 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-05-24 15:40:21 -0400 |
commit | ebbffbddc263b9dc81fc8081165f2c26dac945f8 (patch) | |
tree | f215eccdf5f7c529b77ab385165bca2bde954505 /dev-python/pycparser | |
parent | mail-mta/protonmail-bridge-bin-1.2.7: version bump (diff) | |
download | gentoo-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.ebuild | 2 |
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}" |