[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27746: 26.0.50; Need a better test of whether running on Hydra than
bug#27746: 26.0.50; Need a better test of whether running on Hydra than $NIX_STORE
Tue, 18 Jul 2017 09:04:48 +0200
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
Gemini Lasswell <address@hidden> writes:
> 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.
> But it would be more generally correct to look at the value of
> NIX_STORE on the machine that REMOTE_TEMPORARY_FILE_DIRECTORY points
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.