Subject: [bug#50813] [PATCH v2 6/6] gnu: clipper: Disable non-deterministic test.

From: Felix Gruber <[email-masked]>
Date: Sun, 10 Oct 2021 15:04:34 +0000

This test fails/succeeds non-deterministically.

* gnu/packages/bioinformatics.scm (clipper)[arguments]: Disable
  non-deterministic test test_get_FDR_cutoff_mean.
---
 gnu/packages/bioinformatics.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 082e47bf5b..7dec74f0c0 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2021 Tim Howes <[email-masked]>
 ;;; Copyright © 2021 Hong Li <[email-masked]>
 ;;; Copyright © 2021 Simon Tournier <[email-masked]>
+;;; Copyright © 2021 Felix Gruber <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2363,7 +2364,13 @@ databases.")
              (let ((out (assoc-ref outputs "out")))
                (for-each make-file-writable
                          (find-files out "\\.gz$"))
-               #t))))))
+               #t)))
+         (add-after 'unpack 'disable-nondeterministic-test
+           (lambda _
+             ;; This test fails/succeeds non-deterministically.
+             (substitute* "clipper/test/test_call_peak.py"
+               (("test_get_FDR_cutoff_mean") "_test_get_FDR_cutoff_mean"))
+             #t)))))
     (inputs
      `(("htseq" ,htseq)
        ("python-pybedtools" ,python-pybedtools)
-- 
2.30.2