mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
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:
parent
8d368314fd
commit
5a638b0cbd
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user