guix-commits
[Top][All Lists]
Advanced

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

09/12: gnu: ruby-tzinfo: Skip safe tests.


From: guix-commits
Subject: 09/12: gnu: ruby-tzinfo: Skip safe tests.
Date: Tue, 14 Jan 2020 18:47:40 -0500 (EST)

cbaines pushed a commit to branch core-updates
in repository guix.

commit 740fea08727fc300f530e00fab49a57e984387cb
Author: Christopher Baines <address@hidden>
AuthorDate: Mon Jan 13 19:58:56 2020 +0000

    gnu: ruby-tzinfo: Skip safe tests.
    
    The safe tests attempt to run with Ruby 2.6, but these tests fail if the 
build
    takes place within /tmp, as the Ruby LOAD_PATH then includes /tmp, which is
    world writable.
    
    * gnu/packages/ruby.scm (ruby-tzinfo)[arguments]: Add skip-safe-tests phase.
---
 gnu/packages/ruby.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 34c7b9c..95d2985 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4108,6 +4108,16 @@ utilities for Ruby.")
         (base32
          "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
     (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'skip-safe-tests
+           (lambda _
+             (substitute* "test/test_utils.rb"
+               (("def safe_test\\(options = \\{\\}\\)")
+                 "def safe_test(options = {})
+      skip('The Guix build environment has an unsafe load path')"))
+             #t)))))
     (propagated-inputs
      `(("ruby-thread-safe" ,ruby-thread-safe)))
     (synopsis "Time zone library for Ruby")



reply via email to

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