diff options
author | Hanketsu <hanketsu@egregore.fun> | 2025-02-22 14:07:45 +0100 |
---|---|---|
committer | Hanketsu <hanketsu@egregore.fun> | 2025-06-13 00:04:29 +0200 |
commit | c4b342a43c8737f4b5f56aaa6f530d712f0ba08e (patch) | |
tree | 2614d3d92ac61c6ec5f7010c41baef9e97b4f578 /battering | |
parent | 721618cb22e3943bafcfdffe6985191622cb61da (diff) |
battering: opensnitch: Fix tests.
* battering/packages/opensnitch.scm (opensnitch)
[arguments]: Add new phase 'include-opensnitch-in-pythonpath
Diffstat (limited to 'battering')
-rw-r--r-- | battering/packages/opensnitch.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/battering/packages/opensnitch.scm b/battering/packages/opensnitch.scm index 25d16f5..e7845cf 100644 --- a/battering/packages/opensnitch.scm +++ b/battering/packages/opensnitch.scm @@ -67,7 +67,12 @@ ;; Remove calls to pip in Makefile (substitute* "Makefile" (("@pip3.*$") "")) - (invoke "make" "opensnitch/resources_rc.py")))))) + (invoke "make" "opensnitch/resources_rc.py"))) + (add-before 'check 'include-opensnitch-in-pythonpath + ;; Tests need this directory in the PYTHONPATH to + ;; recognize some modules. It's weird. + (lambda _ + (setenv "PYTHONPATH" "opensnitch/")))))) (inputs (list python-grpcio-tools python-pyinotify python-slugify |