Re: [PATCH 2/3] t/t7004-tag: add failing tag message file test
- From
Kristoffer Haugsbakk <code@khaugsbakk.name>
- Date
- May 15, 2023, 19:56 UTC
- Message-ID
- <bdd8ae5b-9ef8-4d71-b14a-363ef66241a0@app.fastmail.com>
- In-Reply-To
- <xmqqa5y6axk9.fsf@gitster.g>
On Mon, May 15, 2023, at 09:00, Junio C Hamano wrote:
Show 5 quoted lines
> Does this document the current behaviour, i.e. before applying the > patch [3/3]? Or is this a new test designed to fail until [3/3] is > applied? > > If the latter, please don't [*].
Yep, I was going for the latter. I’ll combine [2/3] and [3/3].
Show 7 quoted lines
> Imitate other tests that expect a controlled failure from our > command, and write something like > > test_must_fail env GIT_EDITOR=./fakeeditor git tag -a foo > > so that a segfaulting "git tag" will not count as "failing as > expected".
Ah, I was wondering how to use `test_must_fail` on a command with an environment variable. Thanks.
-- Kristoffer Haugsbakk