summary refs log tree commit diff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-10 15:19:38 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-11 14:27:00 -0400
commit661ad8d7c50c6ab8cff83cf6613d982c93d06c5a (patch)
tree7d94bc7c8939a2c1ce7565f966badd5566efb88e /gnu/packages/ruby.scm
parent257dee505e0fe9722a019fda3687fe44c5aa4c39 (diff)
downloadguix-661ad8d7c50c6ab8cff83cf6613d982c93d06c5a.tar.gz
gnu: ruby-ruby-prof: Disable a flaky test.
A test was found to fail non-deterministically.

* gnu/packages/ruby.scm (ruby-ruby-prof)[phases]: Add the 'delete-flaky-test
phase.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e1c242a083..1ade88a624 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6524,6 +6524,14 @@ variable length integers (varint) in Ruby Protocol Buffers.")
                ((".*require \"bundler/setup\".*" all)
                 (string-append all "  require 'bundler/gem_tasks'\n")))
              #t))
+         ;; The LineNumbersTest test fails non-deterministically (see:
+         ;; https://github.com/ruby-prof/ruby-prof/issues/276).
+         (add-after 'extract-gemspec 'delete-flaky-test
+           (lambda _
+             (delete-file "test/line_number_test.rb")
+             (substitute* "ruby-prof.gemspec"
+               (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
+             #t))
          (add-before 'check 'compile
           (lambda _
             (invoke "rake" "compile"))))))