GNU bug report logs - #27746
26.0.50; Need a better test of whether running on Hydra than $NIX_STORE

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Tue, 18 Jul 2017 02:04:01 UTC

Severity: minor

Found in version 26.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 27746 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Gemini Lasswell <gazally <at> runbox.com>
Cc: 27746 <at> debbugs.gnu.org
Subject: Re: 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
Gemini Lasswell <gazally <at> runbox.com> 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.




This bug report was last modified 8 years and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.