Subject: [bug#50905] [PATCH 19/38] gnu: gdk-pixbuf: Respect #:tests?.

From: Maxime Devos <[email-masked]>
Date: Thu, 30 Sep 2021 00:19:19 +0200

* gnu/packages/gtk.scm (gdk-pixbuf)[arguments]<#:phases>{check}: Don't
  run the tests if the value for #:tests? is false.
---
 gnu/packages/gtk.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index fd7feab69b..bbef514dd7 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -646,8 +646,9 @@ highlighting and other features typical of a source code editor.")
          ,@(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
-- 
2.33.0