net-print/cups: backport test fix to 2.4.7-r2

We can't mkdir twice as it breaks multilib, even though we don't actually run the
tests for non-native abi.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-06-23 01:28:36 +01:00
parent 1834c0a3f5
commit 2ac5f1e9c7

View File

@@ -213,13 +213,13 @@ multilib_src_compile() {
}
multilib_src_test() {
# Avoid using /tmp
export CUPS_TESTBASE="${T}"/cups-tests
mkdir "${T}"/cups-tests || die
# We only build some of CUPS for multilib, so can't run the tests.
if multilib_is_native_abi; then
# Avoid using /tmp
export CUPS_TESTBASE="${T}"/cups-tests
mkdir "${T}"/cups-tests || die
# avoid building *and running* test binaries in src_compile
# https://github.com/OpenPrinting/cups/commit/b1d42061e9286f50eefc851ed906d17c6e80c4b0
emake UNITTESTS=unittests