guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: emacs-org-journal: Disable failing tests.


From: guix-commits
Subject: 02/05: gnu: emacs-org-journal: Disable failing tests.
Date: Fri, 19 Jan 2024 15:25:57 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit ec24673bf9f5d0cafb7f0edc8c9faacb01604f81
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 19 10:38:40 2024 -0500

    gnu: emacs-org-journal: Disable failing tests.
    
    * gnu/packages/emacs-xyz.scm (emacs-org-journal)
    [arguments]: Add disable-failing-tests phase.
    
    Change-Id: I466cb46613a7048ccbda66cd7855001a04871891
---
 gnu/packages/emacs-xyz.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ad811ce363..7ab6015336 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36039,7 +36039,27 @@ Files} (@url{http://tools.ietf.org/html/rfc4180}).")
       #:test-command #~(list "emacs" "-Q" "--batch"
                              "-L" "."
                              "-l" "tests/org-journal-test"
-                             "-f" "ert-run-tests-batch-and-exit")))
+                             "-f" "ert-run-tests-batch-and-exit")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'disable-failing-tests
+            (lambda _
+              (let-syntax
+                  ((disable-tests
+                    (syntax-rules ()
+                      ((_ file ())
+                       (syntax-error "test names list must not be empty"))
+                      ((_ file (test-name ...))
+                       (substitute* file
+                         (((string-append "^\\(ert-deftest " test-name ".*") 
all)
+                          (string-append all "(skip-unless nil)\n")) ...)))))
+                ;; These tests fail for unknown reasons (see:
+                ;; https://github.com/bastibe/org-journal/issues/427).
+                (disable-tests
+                 "tests/org-journal-test.el"
+                 ("org-journal-carryover-delete-empty-journal-test"
+                  "org-journal-carryover-items-test"
+                  "org-journal-scheduled-weekly-test"))))))))
     (home-page "https://github.com/bastibe/org-journal";)
     (synopsis "Simple Org mode journaling mode")
     (description



reply via email to

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