[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url-auth-tests hang if authinfo is encrypted

From: Jarno Malmari
Subject: Re: url-auth-tests hang if authinfo is encrypted
Date: Thu, 06 Apr 2017 22:29:00 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>>> Ted Zlatanov wrote:
>>>> I think the user's personal setup shouldn't affect the tests.

Yes, definitely should not.

>>> Would it help if users like me were to move their encrypted authinfo
>>> away from $HOME by using something like
>>> (setq auth-sources
>>> '((:source "~/some/other/path/to/.authinfo.gpg")))
>>> in their ~/.emacs?
> CB> This certainly works  - for me at least. The url-auth-tests pass
> CB> successfully. I suppose though the change might be a too major to be
> CB> accepted as standard.

How are people running the tests?

The tests are currently not testing the contents of any authinfo files
so setting auth-sources to nil would work. For example:
emacs -Q -batch --eval='(setq auth-sources nil)' -l ert -l
test/lisp/url/url-auth-tests.el -f ert-run-tests-batch-and-exit

> AS> I think the test environment should set up a separate HOME for emacs to
> AS> read all its startup files.
> I think that's better than the explicit option. At least for this case,
> and probably in general. Can anyone think of reasons not to do it?

Separate HOME should then always point to empty or test specific
directory. Shared directory would sound like trouble. Test specific one
would allow adding url-auth-tests.el specific authinfo content, if such
would be added in the future.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]