t4122: use test_write_lines from test-lib-functions
Instead of using a custom lecho function, just use what the test framework already gives us. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 28, 2015 at 21:15 UTC
b65c05882fd5d42ade3c101e7e96f48a8249c82a
1 file changed
+2
-9
t/t4122-apply-symlink-inside.sh
+2
-9
@@ -3,17 +3,10 @@
3
test_description='apply to deeper directory without getting fooled with symlink'
4
. ./test-lib.sh
5
6
-lecho () {
7
- for l_
8
- do
9
- echo "$l_"
10
- done
11
-}
12
-
6
test_expect_success setup '
7
8
mkdir -p arch/i386/boot arch/x86_64 &&
16
- lecho 1 2 3 4 5 >arch/i386/boot/Makefile &&
9
+ test_write_lines 1 2 3 4 5 >arch/i386/boot/Makefile &&
10
test_ln_s_add ../i386/boot arch/x86_64/boot &&
11
git add . &&
12
test_tick &&
@@ -22,7 +15,7 @@ test_expect_success setup '
15
16
rm arch/x86_64/boot &&
17
mkdir arch/x86_64/boot &&
25
- lecho 2 3 4 5 6 >arch/x86_64/boot/Makefile &&
18
+ test_write_lines 2 3 4 5 6 >arch/x86_64/boot/Makefile &&
19
git add . &&
20
test_tick &&
21
git commit -a -m second &&