aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-01-19 14:58:52 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-01-19 15:05:53 -0500
commitc0f423bf1aca8683b9f202432867cd3da8dfd656 (patch)
tree2f3a32749953eafca8352d4d80e7e7e367f4c6c8 /gnu/packages
parentd6170e03e39075c3f781e790ab2f7c4caab25358 (diff)
downloadguix-c0f423bf1aca8683b9f202432867cd3da8dfd656.tar.gz
guix-c0f423bf1aca8683b9f202432867cd3da8dfd656.zip
gnu: emacs-evil-quickscope: Skip failing test.
* gnu/packages/emacs-xyz.scm (emacs-evil-quickscope) [arguments]: Use gexps. Add disable-failing-tests phase. Change-Id: If372531778eab6e3fc164a2f63b98d6775193114
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs-xyz.scm26
1 files changed, 22 insertions, 4 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 75aaafde21..9cb2dec98c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21847,10 +21847,28 @@ emulates Vim features and provides Vim-like key bindings.")
(propagated-inputs
(list emacs-evil))
(arguments
- `(#:tests? #t
- #:test-command '("emacs" "--batch"
- "-l" "evil-quickscope-tests.el"
- "-f" "ert-run-tests-batch-and-exit")))
+ (list
+ #:tests? #t
+ #:test-command #~'("emacs" "--batch"
+ "-l" "evil-quickscope-tests.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack '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")) ...)))))
+ (disable-tests
+ "evil-quickscope-tests.el"
+ ("evil-quickscope-update-overlays-directional-test"))))))))
(home-page "https://github.com/blorbx/evil-quickscope")
(synopsis "Target highlighting for emacs evil-mode f,F,t and T commands")
(description "@code{emacs-evil-quickscope} highlights targets for Evil