[Top][All Lists]

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

Re: nmh 1.8RC2, xlbiff, and $HOME

From: Stephen Gildea
Subject: Re: nmh 1.8RC2, xlbiff, and $HOME
Date: Mon, 30 Jan 2023 20:45:56 -0800

Ken Hornstein <kenh@pobox.com> wrote:

>   >$ printf 'Path: /tmp\n' > /tmp/mh-profile-minimal
>   >$ HOME= MH=/tmp/mh-profile-minimal /usr/bin/mh/mhparam path
>   Thank you for the analysis.  I am wondering, though ... WHY does xlbiff
>   set HOME to '' for this test?

To be clear, it is not xlbiff itself that does this, only an automated
unit test.  The test setup sets HOME to create a hermetic testing
environment; the result of the test should not depend on the user
running the test.  My current test sets HOME to an empty string.

The test could just as effectively set HOME to an non-existent directory.
I know of other test suites that use this approach.  This would still
give me a hermetic, repeatable test, while leaving nmh more freedom to
make, test, and enforce decisions about what values of HOME are allowed.

 < Stephen

reply via email to

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