]> git.eshelyaron.com Git - emacs.git/commitdiff
(Re-)activate remote tests of filenotify-tests.el
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 3 Jul 2017 14:12:10 +0000 (16:12 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 3 Jul 2017 14:12:10 +0000 (16:12 +0200)
* 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

index 8a31c2cd8b59bdbe540dd1a01b93e56f82bee61a..8d05ceacee22b4538b6f40230b0f633ba56ae382 100644 (file)
         (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."