From: Eric Sunshine Date: Sun, 10 Aug 2025 20:58:25 GMT Subject: Re: [PATCH 2/3] t7005: sanitize test environment for subsequent tests Message-ID: In-Reply-To: <9B179FBA-6695-4F8A-8EE1-A02F1236805E@gmail.com> On Sun, Aug 10, 2025 at 3:54 PM Ben Knoble wrote: > > Le 10 août 2025 à 15:44, Phillip Wood a écrit : > >> + git show -s --pretty=oneline >show && > >> + actual && > >> + test_cmp expect actual > > > > We need to add "|| return 1" to the last line here and in the test below to reliably error out when test_cmp fails. I'd have thought that our test linting should hove picked this up but maybe it is confused by the subshell > > PS I think it’a actually “exit 1” in this case? Indeed, it should be `|| exit 1` since this is inside a subshell. (I was just about to respond to Phillip's email but continued reading the thread and saw that you correctly mentioned `|| exit 1` already. Thanks.)