gnu: gdk-pixbuf: Respect #:tests?.

* gnu/packages/gtk.scm (gdk-pixbuf)[arguments]<#:phases>{check}: Don't
  run the tests if the value for #:tests? is false.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Maxime Devos 2021-10-01 16:21:21 +02:00 committed by Mathieu Othacehe
parent cf7c7e2596
commit 1f7cf5834c
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -646,8 +646,9 @@ (define-public gdk-pixbuf
,@(if (any (cute string=? <> (%current-system))
'("armhf-linux" "aarch64-linux"))
'((replace 'check
(lambda _
(invoke "meson" "test" "--timeout-multiplier" "5"))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "meson" "test" "--timeout-multiplier" "5")))))
'()))))
(propagated-inputs
`( ;; Required by gdk-pixbuf-2.0.pc