Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4122: use test_write_lines from test-lib-functions
author
Junio C Hamano
<gitster@pobox.com>
Thu, 29 Jan 2015 05:15:24 +0000
(21:15 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 29 Jan 2015 06:48:16 +0000
(22:48 -0800)
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>
t/t4122-apply-symlink-inside.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3c84ac8
)
diff --git
a/t/t4122-apply-symlink-inside.sh
b/t/t4122-apply-symlink-inside.sh
index 70b3a06e1dc7a92ac5a0806854e100af02c2346b..18146476636803938c1139fb749701e3625345ca 100755
(executable)
--- 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
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 &&
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 &&
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 &&
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 &&
git add . &&
test_tick &&
git commit -a -m second &&