From: Eric Sunshine Date: Sun, 02 Feb 2025 13:35:45 GMT Subject: Re: [PATCH] t6423: fix suppression of Git’s exit code in tests Message-ID: In-Reply-To: <20250202120926.322417-1-ayu.chandekar@gmail.com> On Sun, Feb 2, 2025 at 7:09 AM ayu-ch wrote: > Some test in t6423 supress Git's exit code, which can cause test > failures go unnoticed. Specifically using git | > masks potential failures of the Git command. > > This commit ensures that Git's exit status is correctly propogated by: > - Avoiding pipes that suppress exit codes. > > Signed-off-by: Ayush Chandekar > --- > diff --git a/t/t6423-merge-rename-directories.sh b/t/t6423-merge-rename-directories.sh > @@ -5071,7 +5071,8 @@ test_expect_success '12i: Directory rename causes rename-to-self' ' > - git ls-files | uniq >tracked && > + git ls-files >actual && > + uniq tracked && I was curious if the project has a preference between `uniq filename` and `uniq