gnu: phockup: Test exiftool patching.

* gnu/packages/image.scm (phockup)[arguments]: Unset PATH during tests.
This commit is contained in:
Tobias Geerinckx-Rice 2023-01-22 01:00:19 +01:00
parent 5618153e73
commit 0d03601931
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -2434,7 +2434,12 @@ Wacom-style graphics tablets.")
(string-append "'" (search-input-file inputs "bin/exiftool"))))))
(add-before 'install 'check
(lambda _
(invoke "pytest")))
;; Test without PATH to make sure exiftool is properly found.
(let ((path (getenv "PATH"))
(pytest (which "pytest")))
(setenv "PATH" "")
(invoke pytest)
(setenv "PATH" path))))
(add-after 'install 'install-bin
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))