about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/gajim
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2022-01-05 00:45:33 +0300
committerNikolay Amiantov <ab@fmap.me>2022-01-05 00:49:53 +0300
commitc138c66dcbd6cc986c44e3be0a1c8e47d0fe5573 (patch)
tree338eba888749acc72d40905f276fda9fcef1c9b6 /pkgs/applications/networking/instant-messengers/gajim
parent78cd22c1b8604de423546cd49bfe264b786eca13 (diff)
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`.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gajim')
-rw-r--r--pkgs/applications/networking/instant-messengers/gajim/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix
index 2b6cb9969e82a..8b5156708af96 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