diff options
author | Hanketsu <hanketsu@egregore.fun> | 2025-02-22 14:07:45 +0100 |
---|---|---|
committer | Hanketsu <hanketsu@egregore.fun> | 2025-02-22 14:09:15 +0100 |
commit | ccdeedfe0bef9ee9d179249ea2dc8d60dfffb980 (patch) | |
tree | a795ff133ee17b9dfe0fdcb4c44d50ed424c6816 /battering/packages/opensnitch.scm | |
parent | 8e28fa24872fd80a7bfeca6a9e83ae3e6a438641 (diff) |
battering: opensnitch: Fix tests.
* battering/packages/opensnitch.scm (opensnitch)
[arguments]: Add new phase 'include-opensnitch-in-pythonpath
Diffstat (limited to 'battering/packages/opensnitch.scm')
-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 |