summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-02-17 10:15:29 -0800
committerJunio C Hamano <gitster@pobox.com>2015-02-17 10:15:29 -0800
commit445bb5b74debd4718dfc923ec706c4f5c85da7d5 (patch)
tree5e9b69b84178ca3aeddcdb50fefb7633b7d6c778 /t
parentfccf4a05675b9da0feb8a2f3d11fb53eb44d7dae (diff)
parentb65c05882fd5d42ade3c101e7e96f48a8249c82a (diff)
downloadgit-445bb5b74debd4718dfc923ec706c4f5c85da7d5.tar.gz
Merge branch 'jc/t4122-use-test-write-lines'
* jc/t4122-use-test-write-lines: t4122: use test_write_lines from test-lib-functions
Diffstat (limited to 't')
-rwxr-xr-xt/t4122-apply-symlink-inside.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/t/t4122-apply-symlink-inside.sh b/t/t4122-apply-symlink-inside.sh
index 70b3a06e1d..1814647663 100755
--- a/t/t4122-apply-symlink-inside.sh
+++ b/t/t4122-apply-symlink-inside.sh
@@ -3,17 +3,10 @@
test_description='apply to deeper directory without getting fooled with symlink'
. ./test-lib.sh
-lecho () {
- for l_
- do
- echo "$l_"
- done
-}
-
test_expect_success setup '
mkdir -p arch/i386/boot arch/x86_64 &&
- lecho 1 2 3 4 5 >arch/i386/boot/Makefile &&
+ test_write_lines 1 2 3 4 5 >arch/i386/boot/Makefile &&
test_ln_s_add ../i386/boot arch/x86_64/boot &&
git add . &&
test_tick &&
@@ -22,7 +15,7 @@ test_expect_success setup '
rm arch/x86_64/boot &&
mkdir arch/x86_64/boot &&
- lecho 2 3 4 5 6 >arch/x86_64/boot/Makefile &&
+ test_write_lines 2 3 4 5 6 >arch/x86_64/boot/Makefile &&
git add . &&
test_tick &&
git commit -a -m second &&