提交 476a4dfc 编写于 作者: D Dennis Stosberg 提交者: Junio C Hamano

Make t8001-annotate and t8002-blame more portable

These two tests assume that "sed" will not modify the final line of a
stream if it does not end with a newline character.  The assumption is
not true at least for FreeBSD and Solaris 9.  FreeBSD's "sed" appends
a newline character; "sed" in Solaris 9 even removes the incomplete
final line.  This patch makes the test use perl instead.
Signed-off-by: NDennis Stosberg <dennis@stosberg.net>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 3e4339e6
......@@ -111,9 +111,7 @@ test_expect_success \
test_expect_success \
'some edit' \
'mv file file1 &&
sed -e 1d -e "5s/3A/99/" file1 >file &&
rm -f file1 &&
'perl -pi -e "s/^1A.*\n$//; s/^3A/99/" file &&
GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
test_expect_success \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册