diff options
| author | Glenn Morris <rgm@gnu.org> | 2018-12-18 23:21:37 -0800 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2018-12-18 23:21:37 -0800 |
| commit | dc3f70dc8f87a379cd418b96a5750765a27f8abd (patch) | |
| tree | 92ea1ebd3c63885406a2450592cd5dc0b2bb2dd9 /test/lisp/filenotify-tests.el | |
| parent | 70926a3e8671034fd5cb1a546f9c107feda729a3 (diff) | |
| download | emacs-dc3f70dc8f87a379cd418b96a5750765a27f8abd.tar.gz | |
Skip a remote filenotify test on hydra
* test/lisp/filenotify-tests.el (file-notify--deftest-remote):
Add optional argument to skip test.
(file-notify-test07-many-events-remote): Skip on hydra.nixos.org.
Diffstat (limited to 'test/lisp/filenotify-tests.el')
| -rw-r--r-- | test/lisp/filenotify-tests.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 48dd2de7d12..4c8e7fbe93a 100644 --- a/test/lisp/filenotify-tests.el +++ b/test/lisp/filenotify-tests.el @@ -241,13 +241,14 @@ This returns only for the local case and gfilenotify; otherwise it is nil. (gfile-monitor-name file-notify--test-desc))) (cdr (assq file-notify--test-desc file-notify--test-monitors)))))) -(defmacro file-notify--deftest-remote (test docstring &optional expected) +(defmacro file-notify--deftest-remote (test docstring &optional expected skip) "Define ert `TEST-remote' for remote files." (declare (indent 1)) `(ert-deftest ,(intern (concat (symbol-name test) "-remote")) () ,docstring :tags '(:expensive-test) :expected-result (or ,expected :passed) + (skip-unless (not ,skip)) (let* ((temporary-file-directory file-notify-test-remote-temporary-file-directory) (ert-test (ert-get-test ',test))) @@ -1161,8 +1162,10 @@ delivered." ;; Cleanup. (file-notify--test-cleanup))) +;; Unpredictable failures, eg https://hydra.nixos.org/build/86016286 (file-notify--deftest-remote file-notify-test07-many-events - "Check that events are not dropped for remote directories.") + "Check that events are not dropped for remote directories." + :passed (getenv "EMACS_HYDRA_CI")) (ert-deftest file-notify-test08-backup () "Check that backup keeps file notification." |
