From ebbffbddc263b9dc81fc8081165f2c26dac945f8 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 24 May 2020 15:39:37 -0400 Subject: dev-python/pycparser: skip tests if cpp is not in PATH Bug: https://bugs.gentoo.org/719934 Signed-off-by: Mike Gilbert --- dev-python/pycparser/pycparser-2.20.ebuild | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dev-python/pycparser') 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}" -- cgit v1.2.3-65-gdbad