From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: url-auth-tests hang if authinfo is encrypted Date: Wed, 05 Apr 2017 09:33:21 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wpaz0yji.fsf@lifelogs.com> References: <877f311enn.fsf@yandex.com> <87k2702pi6.fsf@lifelogs.com> <87bmscvt33.fsf@yandex.com> <878tnfz75u.fsf@yandex.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491399581 24105 195.159.176.226 (5 Apr 2017 13:39:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2017 13:39:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 05 15:39:36 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvl9n-0005Co-4P for ged-emacs-devel@m.gmane.org; Wed, 05 Apr 2017 15:39:31 +0200 Original-Received: from localhost ([::1]:40623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvl9r-0007MU-DV for ged-emacs-devel@m.gmane.org; Wed, 05 Apr 2017 09:39:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvl5j-0004T3-8z for emacs-devel@gnu.org; Wed, 05 Apr 2017 09:35:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvl5g-0005Ie-6k for emacs-devel@gnu.org; Wed, 05 Apr 2017 09:35:19 -0400 Original-Received: from [195.159.176.226] (port=35922 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvl5g-0005Gx-0n for emacs-devel@gnu.org; Wed, 05 Apr 2017 09:35:16 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cvl5U-0006l1-G0 for emacs-devel@gnu.org; Wed, 05 Apr 2017 15:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 38 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:53aGQJNYiFlCPNDEbivtyzdf/kQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213673 Archived-At: On Wed, 05 Apr 2017 07:43:09 +0100 Colin Baxter wrote: >> Ted Zlatanov wrote: >>> I think the user's personal setup shouldn't affect the tests. >>> >>> The solution can be either automatic (auth-source knows it's inside a >>> test, or EPG doesn't try to decrypt in a test environment) or explicit >>> (tests override `auth-sources' and/or EPG). For the automatic >>> option, I can add the code to auth-source if anyone can suggest how to >>> tell it's inside a test environment. >>> >>> Maybe others can think of other options? >>> >> >> 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. Your suggestion is the explicit option, which has the downside that every test has to do it, but yeah that would work. On Tue, 04 Apr 2017 18:04:39 +0200 Andreas Schwab wrote: 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? Ted