guix-commits
[Top][All Lists]
Advanced

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

17/17: gnu: ruby-ruby-prof: Disable a flaky test.


From: guix-commits
Subject: 17/17: gnu: ruby-ruby-prof: Disable a flaky test.
Date: Sat, 11 Jul 2020 14:30:40 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 661ad8d7c50c6ab8cff83cf6613d982c93d06c5a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jul 10 15:19:38 2020 -0400

    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.
---
 gnu/packages/ruby.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e1c242a..1ade88a 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"))))))



reply via email to

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