From c138c66dcbd6cc986c44e3be0a1c8e47d0fe5573 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 5 Jan 2022 00:45:33 +0300 Subject: gajim: fix tests `test` directory actually also contains various libraries and broken tests. Test failure happens when `test/lib/gajim_mocks.py` is attempted to run as a test. Upstream only runs no_gui tests: https://dev.gajim.org/gajim/ci/-/blob/e0f58cfc780c808b54b0170bc494c6e10a68c0a5/.gajim-ci.yml#L18 We now explicitly run only tests from `no_gui` and `unit`. --- pkgs/applications/networking/instant-messengers/gajim/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix index 2b6cb9969e82..8b5156708af9 100644 --- a/pkgs/applications/networking/instant-messengers/gajim/default.nix +++ b/pkgs/applications/networking/instant-messengers/gajim/default.nix @@ -59,7 +59,8 @@ python3.pkgs.buildPythonApplication rec { checkPhase = '' xvfb-run dbus-run-session \ --config-file=${dbus.daemon}/share/dbus-1/session.conf \ - ${python3.interpreter} setup.py test + ${python3.interpreter} -m unittest discover -s test/unit -v + ${python3.interpreter} -m unittest discover -s test/no_gui -v ''; # necessary for wrapGAppsHook -- cgit v1.2.3