summaryrefslogtreecommitdiff
path: root/t/t1008-read-tree-overlay.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2018-07-01 20:23:42 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-03 12:38:04 -0700
commit0590ff26c406204281262c2753b3b92aa07f59c7 (patch)
tree59857964cf6ade6e1600e150e795e3ae4d347210 /t/t1008-read-tree-overlay.sh
parentt: use test_might_fail() instead of manipulating exit code manually (diff)
downloadtgif-0590ff26c406204281262c2753b3b92aa07f59c7.tar.xz
t: use test_write_lines() instead of series of 'echo' commands
These tests employ a noisy subshell (with missing &&-chain) to feed input into Git commands or files: (echo a; echo b; echo c) | git some-command ... Simplify by taking advantage of test_write_lines(): test_write_lines a b c | git some-command ... Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1008-read-tree-overlay.sh')
-rwxr-xr-xt/t1008-read-tree-overlay.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1008-read-tree-overlay.sh b/t/t1008-read-tree-overlay.sh
index 4c50ed955e..cf96016844 100755
--- a/t/t1008-read-tree-overlay.sh
+++ b/t/t1008-read-tree-overlay.sh
@@ -23,7 +23,7 @@ test_expect_success setup '
test_expect_success 'multi-read' '
read_tree_must_succeed initial master side &&
- (echo a; echo b/c) >expect &&
+ test_write_lines a b/c >expect &&
git ls-files >actual &&
test_cmp expect actual
'