Skip to content

Commit

Permalink
Merge branch 'jc/t4122-use-test-write-lines'
Browse files Browse the repository at this point in the history
* jc/t4122-use-test-write-lines:
  t4122: use test_write_lines from test-lib-functions
  • Loading branch information
Junio C Hamano committed Feb 17, 2015
2 parents fccf4a0 + b65c058 commit 445bb5b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions t/t4122-apply-symlink-inside.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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 &&
Expand Down

0 comments on commit 445bb5b

Please sign in to comment.