Subject: [PATCH v2 32/65] gnu: dbus-cxx: Use #:test-exclude.

From: Greg Hogan <[email-masked]>
Date: Tue, 22 Oct 2024 18:09:22 +0000

* gnu/packages/glib.scm (dbus-cxx)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Remove 'check phase.

Change-Id: I6d2b17be9c2d1575dbebc28baf91990c7a903211
---
 gnu/packages/glib.scm | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index a15a7ce58a..9454420a41 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -1266,14 +1266,8 @@ (define-public dbus-cxx
                                      "-DENABLE_TOOLS=ON"
                                      "-DENABLE_GLIB_SUPPORT=ON"
                                      "-DTOOLS_BUNDLED_CPPGENERATE=OFF")
-           #:phases
-           #~(modify-phases %standard-phases
-               (replace 'check
-                 (lambda* (#:key tests? #:allow-other-keys)
-                   (when tests?
-                     ;; There is no /etc/machine-id file in the build
-                     ;; environment.
-                     (invoke "ctest" "-E" "test-machine-uuid-method")))))))
+           ;; There is no /etc/machine-id file in the build environment.
+           #:test-exclude "test-machine-uuid-method"))
     ;; These are propagated due to being referenced in headers and pkg-config
     ;; .pc files.
     (propagated-inputs (list glib libsigc++))
-- 
2.46.1