From: Eric Sunshine Date: Tue, 22 Nov 2022 18:07:36 GMT Subject: Re: [PATCH v6] status: long status advice adapted to recent capabilities Message-ID: In-Reply-To: On Tue, Nov 22, 2022 at 12:40 PM Eric Sunshine wrote: > A minor additional comment if you do go this route and place the new > tests in an existing script... And one more comment... By placing: GIT_TEST_UF_DELAY_WARNING=1 export GIT_TEST_UF_DELAY_WARNING at the top of the existing script into which you add the new tests, we have to worry about potential side-effects in other tests in the scripts. Better would be to place these lines just above the new tests, so that the effects are better isolated. However, even better than that would be to isolate the environment variable to exactly the point it is needed. For instance: test_expect_success 'when core.untrackedCache and fsmonitor are unset' ' test_unconfig core.untrackedCache && test_unconfig core.fsmonitor && GIT_TEST_UF_DELAY_WARNING=1 git status >out && ... '