gnu: emacs-org-cliplink: Fix randomly failing build.

* gnu/packages/emacs-xyz.scm (emacs-org-cliplink)[arguments]<#:phases>: Fix
a randomly failing test.
This commit is contained in:
Nicolas Goaziou 2023-01-28 15:51:05 +01:00
parent 3c4b3206fc
commit 45542a0d5e
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -35183,7 +35183,14 @@ (define-public emacs-org-cliplink
(substitute* "org-cliplink-transport.el"
(("\\(executable-find \"curl\"\\)")
(let ((curl (search-input-file inputs "/bin/curl")))
(string-append "\"" curl "\"")))))))))
(string-append "\"" curl "\""))))))
(add-before 'check 'fix-failing-test
;; XXX: Fix randomly (!) failing test, which doesn't account for
;; the fact that (random) may return a negative number.
(lambda _
(substitute* "test/org-cliplink-transport-test.el"
(("curl-rexim.me-\\[a-z0-9\\]\\+")
"curl-rexim.me--?[a-z0-9]+")))))))
(native-inputs
(list emacs-el-mock emacs-ert-runner emacs-undercover))
(inputs