From: Rubén Justo Date: Sun, 25 Aug 2024 10:19:48 GMT Subject: [PATCH 5/5] t4124: move test preparation into the test context Message-ID: <4c0c05a2-c143-43b4-bc1b-d70b3645c702@gmail.com> In-Reply-To: <6dd964c2-9dee-4257-8f1a-5bc31a73722e@gmail.com> Signed-off-by: Rubén Justo --- t/t4124-apply-ws-rule.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/t/t4124-apply-ws-rule.sh b/t/t4124-apply-ws-rule.sh index e12b8333c3..56f15dc3ef 100755 --- a/t/t4124-apply-ws-rule.sh +++ b/t/t4124-apply-ws-rule.sh @@ -423,14 +423,8 @@ test_expect_success 'missing blanks at EOF must only match blank lines' ' test_must_fail git apply --ignore-space-change --whitespace=fix patch ' -sed -e's/Z//' >one <one && git add one && echo d >>one && git diff -- one >patch && @@ -443,14 +437,8 @@ test_expect_success 'missing blank line should match context line with spaces' ' test_cmp expect one ' -sed -e's/Z//' >one <one && git add one && echo d >>one && cp one expect && -- 2.46.0.353.g385c909849