From: Junio C Hamano Date: Mon, 06 Feb 2023 22:44:26 GMT Subject: Re: [PATCH v4 3/3] t4113: put executable lines to test_expect_success Message-ID: In-Reply-To: <20230206211823.8651-4-cheskaqiqi@gmail.com> Shuqi Liang writes: > -cat >test-patch <<\EOF > -diff --git a/file b/file > ---- a/file > -+++ b/file > -@@ -1,2 +1,3 @@ > - a > - b > -+c > -EOF > - > -echo 'a' >file > -echo 'b' >>file > -echo 'c' >>file Have you run the resulting test? > test_expect_success setup ' > + cat >test-patch <<-\EOF > + diff --git a/file b/file > + --- a/file > + +++ b/file > + @@ -1,2 +1,3 @@ > + a > + b > + +c > + EOF This creates a "test-patch" file with lines 'a' and 'b' that are common context lines without any whitespace before them, no? The original left the necessary single space in front of them (see the line removed above).