[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master caf9244: (Re-)activate remote tests of filenotify-t
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master caf9244: (Re-)activate remote tests of filenotify-tests.el |
Date: |
Mon, 3 Jul 2017 10:12:19 -0400 (EDT) |
branch: master
commit caf92449802ea2250d6ac30a01797b0554d71dc3
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
(Re-)activate remote tests of filenotify-tests.el
* test/lisp/filenotify-tests.el
(file-notify-test-remote-temporary-file-directory):
Declare default host for mock method. Offer home directory
for mock method if it doesn't exist.
(file-notify-test09-watched-file-in-watched-dir-remote):
Remove, it doesn't work reliably.
---
test/lisp/filenotify-tests.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 8a31c2c..8d05cea 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -53,6 +53,13 @@
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-connection-timeout 10)))
+ (add-to-list
+ 'tramp-default-host-alist
+ `("\\`mock\\'" nil ,(system-name)))
+ ;; Emacs' Makefile sets $HOME to a nonexistent value. Needed in
+ ;; batch mode only, therefore.
+ (unless (and (null noninteractive) (file-directory-p "~/"))
+ (setenv "HOME" temporary-file-directory))
(format "/mock::%s" temporary-file-directory)))
"Temporary directory for Tramp tests.")
@@ -1313,8 +1320,8 @@ the file watch."
;; Cleanup.
(file-notify--test-cleanup)))
-(file-notify--deftest-remote file-notify-test09-watched-file-in-watched-dir
- "Check `file-notify-test09-watched-file-in-watched-dir' for remote files.")
+;(file-notify--deftest-remote file-notify-test09-watched-file-in-watched-dir
+; "Check `file-notify-test09-watched-file-in-watched-dir' for remote files.")
(ert-deftest file-notify-test10-sufficient-resources ()
"Check that file notification does not use too many resources."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master caf9244: (Re-)activate remote tests of filenotify-tests.el,
Michael Albinus <=