diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 4e6370f8c6..561f134c4c 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -1347,10 +1347,11 @@ (define-public p7zip "makefile.linux_any_cpu_gcc_4.X"))) "makefile.machine"))) (replace 'check - (lambda _ - (invoke "make" "test") - (invoke "make" "test_7z") - (invoke "make" "test_7zr")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test") + (invoke "make" "test_7z") + (invoke "make" "test_7zr"))))))) (native-inputs (let ((system (or (%current-target-system) (%current-system))))