unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: trunk r113641: * test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Date: Fri, 02 Aug 2013 08:47:39 +0200	[thread overview]
Message-ID: <87bo5g1tdg.fsf@gmx.de> (raw)
In-Reply-To: <E1V521H-0006zR-8a@vcs.savannah.gnu.org> (Glenn Morris's message of "Thu, 01 Aug 2013 23:10:55 +0000")

Glenn Morris <rgm@gnu.org> writes:

Hi Glenn,

> === modified file 'test/automated/file-notify-tests.el'
> --- a/test/automated/file-notify-tests.el	2013-07-24 13:56:19 +0000
> +++ b/test/automated/file-notify-tests.el	2013-08-01 23:10:51 +0000
> @@ -43,6 +43,7 @@
>  (defvar file-notify--test-event nil)
>  
>  (require 'tramp)
> +(require 'tramp-sh)
>  (setq tramp-verbose 0
>        tramp-message-show-message nil)
>  (when noninteractive (defalias 'tramp-read-passwd 'ignore))
> @@ -57,7 +58,18 @@
>    (ignore-errors
>      (and (file-remote-p file-notify-test-remote-temporary-file-directory)
>  	 (file-directory-p file-notify-test-remote-temporary-file-directory)
> -	 (file-writable-p file-notify-test-remote-temporary-file-directory))))
> +	 (file-writable-p file-notify-test-remote-temporary-file-directory)
> +	 ;; Extracted from tramp-sh-handle-file-notify-add-watch.
> +	 ;; Even though the "remote" system is just ssh@localhost,
> +	 ;; the PATH might not be the same as the "local" PATH.
> +	 ;; Eg this seems to be the case on hydra.nixos.org.
> +	 ;; Without this, tests fail with:
> +	 ;; "No file notification program found on /ssh:localhost:"
> +	 ;; Try to fix PATH instead?
> +	 (with-parsed-tramp-file-name
> +	     file-notify-test-remote-temporary-file-directory nil
> +	     (or (tramp-get-remote-gvfs-monitor-dir v)
> +		 (tramp-get-remote-inotifywait v))))))
>  
>  (defmacro file-notify--deftest-remote (test docstring)
>    "Define ert `TEST-remote' for remote files."

I fear this is not sufficient. This patch handles only file
notifications which are implemented via tramp-sh.el.

Yesterday, I have committed a patch which adds
`tramp-gvfs-handle-file-notify-add-watch' (using gvfs-monitor-file to
poll for changes on GVFS mounted directories).

Maybe we rethink to introduce `file-notify-supported-p' and its
handlers?

Best regards, Michael.

PS: Don't worry when I do not react next days. Tomorrow I'll start a
bike tour, and unfortunately my companions insist on the basic rule "no
electronic devices on board".



       reply	other threads:[~2013-08-02  6:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1V521H-0006zR-8a@vcs.savannah.gnu.org>
2013-08-02  6:47 ` Michael Albinus [this message]
2013-08-02  7:12   ` trunk r113641: * test/automated/file-notify-tests.el (file-notify--test-remote-enabled): Glenn Morris
2013-08-02  7:28     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bo5g1tdg.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).