python3Packages.systemd: ignore tests that uses a direct system open call for /etc/machine-id

systemd recommends anyway to ignore them too.
This commit is contained in:
Raito Bezarius 2023-08-03 17:40:10 +02:00 committed by nikstur
parent 8d368314fd
commit 5a638b0cbd

View file

@ -36,7 +36,9 @@ buildPythonPackage rec {
export NIX_REDIRECTS=/etc/machine-id=$(realpath machine-id) \
LD_PRELOAD=${libredirect}/lib/libredirect.so
pytest $out/${python.sitePackages}/systemd
# Those tests assume /etc/machine-id to be available
# But our redirection technique does not work apparently
pytest $out/${python.sitePackages}/systemd -k 'not test_get_machine and not test_get_machine_app_specific and not test_reader_this_machine'
'';
pythonImportsCheck = [