Loading pkgs/development/libraries/xdg-desktop-portal/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ stdenv.mkDerivation (finalAttrs: { # While upstream has `XDG_DESKTOP_PORTAL_DIR`, it is meant for tests and actually blocks # any configs from being loaded from anywhere else. ./nix-pkgdatadir-env.patch # test tries to read /proc/cmdline, which is not intended to be accessible in the sandbox ./trash-test.patch ]; nativeBuildInputs = [ Loading pkgs/development/libraries/xdg-desktop-portal/trash-test.patch 0 → 100644 +18 −0 Original line number Diff line number Diff line diff --git a/tests/test_trash.py b/tests/test_trash.py index d745cd2..173e3e5 100644 --- a/tests/test_trash.py +++ b/tests/test_trash.py @@ -24,13 +24,6 @@ class TestTrash: def test_version(self, portal_mock): portal_mock.check_version(1) - def test_trash_file_fails(self, portal_mock): - trash_intf = portal_mock.get_dbus_interface() - with open("/proc/cmdline") as fd: - result = trash_intf.TrashFile(fd.fileno()) - - assert result == 0 - def test_trash_file(self, portal_mock): trash_intf = portal_mock.get_dbus_interface() Loading
pkgs/development/libraries/xdg-desktop-portal/default.nix +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ stdenv.mkDerivation (finalAttrs: { # While upstream has `XDG_DESKTOP_PORTAL_DIR`, it is meant for tests and actually blocks # any configs from being loaded from anywhere else. ./nix-pkgdatadir-env.patch # test tries to read /proc/cmdline, which is not intended to be accessible in the sandbox ./trash-test.patch ]; nativeBuildInputs = [ Loading
pkgs/development/libraries/xdg-desktop-portal/trash-test.patch 0 → 100644 +18 −0 Original line number Diff line number Diff line diff --git a/tests/test_trash.py b/tests/test_trash.py index d745cd2..173e3e5 100644 --- a/tests/test_trash.py +++ b/tests/test_trash.py @@ -24,13 +24,6 @@ class TestTrash: def test_version(self, portal_mock): portal_mock.check_version(1) - def test_trash_file_fails(self, portal_mock): - trash_intf = portal_mock.get_dbus_interface() - with open("/proc/cmdline") as fd: - result = trash_intf.TrashFile(fd.fileno()) - - assert result == 0 - def test_trash_file(self, portal_mock): trash_intf = portal_mock.get_dbus_interface()