John Paul Adrian Glaubitz
2024-10-24 10:50:01 UTC
Reply
PermalinkHello,
I am maintaining the package src:kiwi [1] which hasn't been updated in
Debian for some time since upstream has added tests that only work when
the package source is installed into the test environment, i.e. available
through PYTHONPATH.
I have tried to adjust the environment variables in debian/rules as follows
and tried to invoke the testsuite from the test/unit subdirectory:
export PYTHONPATH = $(CURDIR)
export PYBUILD_TEST_ARGS_python3 = cd {build_dir}; python{version} -m discover
override_dh_auto_test:
ifeq ($(filter nocheck nobench, $(DEB_BUILD_OPTIONS)),)
/bin/sh -c "cd test/unit && pytest-3"
endif
However, that doesn't work and the tests still fail.
Does anyone have a suggestion how to solve? I would like to update the kiwi
package to the latest upstream version before the Trixie release.
Adrian
[1] https://salsa.debian.org/debian/kiwi
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913