Re: [PATCH v5 3/4] commit test: test_set_editor in each test
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 13, 2014, 17:42 UTC
- Message-ID
- <xmqqtx7o3dvh.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140613065942.GB7908@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> [1] It might make sense for test_set_editor, when run from within a > test, to behave more like test_config, and do: > > test_when_finished ' > sane_unset FAKE_EDITOR && > sane_unset EDITOR > ' > > I don't know if there would be fallouts with other test scripts, > though.
The default environment for tests is to set EDITOR=: to avoid accidentally triggering interactive cruft and interfering with automated tests, I thought.
If the above sane-unset is changed to EDITOR=: then I think that is probably sensible.