Re: [PATCH v4 3/3] t4113: put executable lines to test_expect_success
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2023, 22:44 UTC
- Message-ID
- <xmqqlela2z3p.fsf@gitster.g>
- In-Reply-To
- <20230206211823.8651-4-cheskaqiqi@gmail.com>
Shuqi Liang <cheskaqiqi@gmail.com> writes:
Show 13 quoted lines
> -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?
Show 10 quoted lines
> 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).