Subject: Re: [PATCH v2 2/4] t1517: test commands that are designed to be run outside repository

From: Junio C Hamano <[email-masked]>
Date: Mon, 13 May 2024 13:33:09 -0700

Kyle Lippincott <[email-masked]> writes:

> Do we only expect failure because of a temporary condition (the bug
> that is mentioned in the commit message)? If so, we should probably
> add a TODO, FIXME, or some other similar style of comment that
> describes that this should be fixed.

test_expect_failure is description enough for that purpose.

If a command should NOT work outside the project we will write a
test more like so:

	test_expect_success 'foo does not work outside' '
		... prepare that $cwd is outside ...
		test_must_fail git foo
	'