guix-commits
[Top][All Lists]
Advanced

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

04/16: gnu: ruby-yard-with-tests: Run tests conditionally.


From: guix-commits
Subject: 04/16: gnu: ruby-yard-with-tests: Run tests conditionally.
Date: Fri, 11 Mar 2022 23:43:24 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit 0679c8fe976f3281e840f1332db60628351c9793
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Mar 4 13:01:06 2022 +0000

    gnu: ruby-yard-with-tests: Run tests conditionally.
    
    * gnu/packages/ruby.scm (ruby-yard-with-tests)[arguments]:
    Remove #:tests? instead of unconditionally setting it to #t.
    [phases]: Delete trailing #t.
    [native-inputs]: Use new style.
    
    Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
    Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
 gnu/packages/ruby.scm | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 21b982d4a9..c3c357d216 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8279,8 +8279,8 @@ definitions.")
     (inherit ruby-yard)
     (name "ruby-yard-with-tests")
     (arguments
-     (substitute-keyword-arguments (package-arguments ruby-yard)
-       ((#:tests? _ #t) #t)
+     (substitute-keyword-arguments
+         (strip-keyword-arguments '(#:tests?) (package-arguments ruby-yard))
        ((#:test-target _ "default") "default")
        ((#:phases phases '%standard-phases)
         `(modify-phases ,phases
@@ -8293,13 +8293,8 @@ definitions.")
                  (delete-file "Gemfile")
                  ;; $HOME needs to be set to somewhere writeable for tests to
                  ;; run.
-                 (setenv "HOME" "/tmp"))
-               #t))))))
-    (native-inputs
-     `(("ruby-rspec" ,ruby-rspec)
-       ("ruby-rack" ,ruby-rack)
-       ("ruby-redcloth" ,ruby-redcloth)
-       ("ruby-asciidoc" ,ruby-asciidoctor)))))
+                 (setenv "HOME" "/tmp"))))))))
+    (native-inputs (list ruby-rspec ruby-rack ruby-redcloth 
ruby-asciidoctor))))
 
 (define-public ruby-spectroscope
   (package



reply via email to

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