From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#27746: 26.0.50; Need a better test of whether running on Hydra than $NIX_STORE Date: Tue, 18 Jul 2017 09:04:48 +0200 Message-ID: <87379u444v.fsf@detlef> References: <87eftepkm3.fsf@chinook> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500361524 31437 195.159.176.226 (18 Jul 2017 07:05:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2017 07:05:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27746@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 18 09:05:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dXMZJ-0007jN-PA for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Jul 2017 09:05:17 +0200 Original-Received: from localhost ([::1]:54449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXMZP-0002ML-C4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Jul 2017 03:05:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXMZE-0002MC-SO for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2017 03:05:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXMZ5-0005kx-GP for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2017 03:05:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXMZ5-0005kX-CQ for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2017 03:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dXMZ4-0006Hk-DP for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2017 03:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Jul 2017 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27746 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27746-submit@debbugs.gnu.org id=B27746.150036150024149 (code B ref 27746); Tue, 18 Jul 2017 07:05:02 +0000 Original-Received: (at 27746) by debbugs.gnu.org; 18 Jul 2017 07:05:00 +0000 Original-Received: from localhost ([127.0.0.1]:45257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXMZ2-0006HR-JM for submit@debbugs.gnu.org; Tue, 18 Jul 2017 03:05:00 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXMZ0-0006HD-Uy for 27746@debbugs.gnu.org; Tue, 18 Jul 2017 03:04:59 -0400 Original-Received: from detlef.gmx.de ([212.86.40.150]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LosFD-1e8t2H3lnP-00go4R; Tue, 18 Jul 2017 09:04:51 +0200 In-Reply-To: <87eftepkm3.fsf@chinook> (Gemini Lasswell's message of "Mon, 17 Jul 2017 19:03:16 -0700") X-Provags-ID: V03:K0:w1LqZf79nZ8Ka0GXje4fS/txfT7vmL29R4VfNRHXh82lht+WjiV n2tfnw983ws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Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134707 Archived-At: Gemini Lasswell writes: Hi Gemini, > There are places in the test code in Emacs which use the existence of > the NIX_STORE environment variable to change test behavior when > running on Hydra. However, Emacs should have a different and more > specific test for whether it is running on Hydra, so that those > behavior changes don't happen on other machines running NixOS or the > Nix package manager. I agree. Checking the existence of $NIX_STORE is just a heuristic. A better approach might be setting an environment variable or so in the Emacs recipe for hydra. Glenn? > But it would be more generally correct to look at the value of > NIX_STORE on the machine that REMOTE_TEMPORARY_FILE_DIRECTORY points > to. The tests running on hydra use always the mockup file name (format "/mock::%s" temporary-file-directory) This is on the local host; a proper test for hydra would be sufficient. Best regards, Michael.