summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-11-27 19:53:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-29 21:20:14 (GMT)
commitafd43c99054a3d666e150bcee66183169b67df7f (patch)
tree7a8702d0e6f0be8b2345e0fba9373efffbadc9a1
parent946d2353a36a6e1ce86e0bcade7ebd304d1c67a8 (diff)
downloadgit-afd43c99054a3d666e150bcee66183169b67df7f.zip
git-afd43c99054a3d666e150bcee66183169b67df7f.tar.gz
git-afd43c99054a3d666e150bcee66183169b67df7f.tar.bz2
t4015: use test_write_lines()
Instead of rolling our own method to write out some lines into a file, use the existing test_write_lines(). Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t4015-diff-whitespace.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh
index 7fb83c8..4c540b1 100755
--- a/t/t4015-diff-whitespace.sh
+++ b/t/t4015-diff-whitespace.sh
@@ -771,9 +771,9 @@ test_expect_success 'checkdiff detects new trailing blank lines (1)' '
'
test_expect_success 'checkdiff detects new trailing blank lines (2)' '
- { echo a; echo b; echo; echo; } >x &&
+ test_write_lines a b "" "" >x &&
git add x &&
- { echo a; echo; echo; echo; echo; } >x &&
+ test_write_lines a "" "" "" "" >x &&
test_must_fail git diff --check >check &&
grep "new blank line" check
'