guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

27/45: gnu: go-github-com-99designs-keyring: Simplify.


From: guix-commits
Subject: 27/45: gnu: go-github-com-99designs-keyring: Simplify.
Date: Sat, 11 Jan 2025 18:19:12 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit 0092693b99871b938c2a8ac8088176777e9221b9
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Jan 11 15:23:11 2025 +0000

    gnu: go-github-com-99designs-keyring: Simplify.
    
    * gnu/packages/golang-crypto.scm (go-github-com-99designs-keyring)
    [arguments] <test-flags>: Move skip tests logic here.
    <phases>: Remove 'disable-failing-tests.
    
    Change-Id: I69dc7a85963632c430bfc0f54caacaa371675bcd
---
 gnu/packages/golang-crypto.scm | 28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 0326382c25..b5340bc7a7 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -198,25 +198,15 @@ primitives.")
     (arguments
      (list
       #:import-path "github.com/99designs/keyring"
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'disable-failing-tests
-            (lambda* (#:key tests? unpack-path #:allow-other-keys)
-              (with-directory-excursion (string-append "src/" unpack-path)
-                (substitute* (find-files "." "\\_test.go$")
-                  ;; Disable test requring running DBus.
-                  (("TestLibSecretKeysWhenEmpty")
-                   "OffTestLibSecretKeysWhenEmpty")
-                  (("TestLibSecretKeysWhenNotEmpty")
-                   "OffTestLibSecretKeysWhenNotEmpty")
-                  (("TestLibSecretGetWhenEmpty")
-                   "OffTestLibSecretGetWhenEmpty")
-                  (("TestLibSecretGetWhenNotEmpty")
-                   "OffTestLibSecretGetWhenNotEmpty")
-                  (("TestLibSecretRemoveWhenEmpty")
-                   "OffTestLibSecretRemoveWhenEmpty")
-                  (("TestLibSecretRemoveWhenNotEmpty")
-                   "OffTestLibSecretRemoveWhenNotEmpty"))))))))
+      #:test-flags
+      #~(list "-skip" (string-join
+                       (list "TestLibSecretKeysWhenEmpty"
+                             "TestLibSecretKeysWhenNotEmpty"
+                             "TestLibSecretGetWhenEmpty"
+                             "TestLibSecretGetWhenNotEmpty"
+                             "TestLibSecretRemoveWhenEmpty"
+                             "TestLibSecretRemoveWhenNotEmpty")
+                       "|"))))
     (native-inputs
      (list gnupg go-github-com-stretchr-testify password-store))
     (propagated-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]