diff options
| author | Arun Isaac <arunisaac@systemreboot.net> | 2025-09-29 13:40:04 +0100 |
|---|---|---|
| committer | Arun Isaac <arunisaac@systemreboot.net> | 2025-09-29 13:51:48 +0100 |
| commit | 16aaabdf53c74aff0f4d3a297effca450f0abac4 (patch) | |
| tree | b60a8d80c115982250b872e0344465e8644d9ae5 | |
| parent | 2fe293518070e787d9368aedc3647d2ed32b830e (diff) | |
gnu: phockup: Respect tests?.
* gnu/packages/image.scm (phockup)[arguments]: Respect tests? in the check
phase.
| -rw-r--r-- | gnu/packages/image.scm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 192544e8dae..e34ffca44a1 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -2964,13 +2964,14 @@ Wacom-style graphics tablets.") (("'exiftool") (string-append "'" (search-input-file inputs "bin/exiftool")))))) (add-before 'install 'check - (lambda _ - ;; Test without PATH to make sure ‘exiftool’ is properly found. - (let ((path (getenv "PATH")) - (pytest (which "pytest"))) - (setenv "PATH" "") - (invoke pytest) - (setenv "PATH" path)))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; 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"))) |
