Skip to content

Commit 445bb5b

Browse files
committed
Merge branch 'jc/t4122-use-test-write-lines'
* jc/t4122-use-test-write-lines: t4122: use test_write_lines from test-lib-functions
2 parents fccf4a0 + b65c058 commit 445bb5b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

t/t4122-apply-symlink-inside.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
test_description='apply to deeper directory without getting fooled with symlink'
44
. ./test-lib.sh
55

6-
lecho () {
7-
for l_
8-
do
9-
echo "$l_"
10-
done
11-
}
12-
136
test_expect_success setup '
147
158
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 &&
1710
test_ln_s_add ../i386/boot arch/x86_64/boot &&
1811
git add . &&
1912
test_tick &&
@@ -22,7 +15,7 @@ test_expect_success setup '
2215
2316
rm arch/x86_64/boot &&
2417
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 &&
2619
git add . &&
2720
test_tick &&
2821
git commit -a -m second &&

0 commit comments

Comments
 (0)