X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=cacb273afff1fbddf152bb440451fa141589cf33;hb=88ab18dfef55a41df2e1f69a8ab3e3ed9f915c31;hp=b6a2edd8878c910ad177b8b277bedf99f60d9416;hpb=e40e0135f24a140935c218af43d0bf8b7b07067b;p=git.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index b6a2edd88..cacb273af 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -4,7 +4,9 @@ check_count () { head= case "$1" in -h) head="$2"; shift; shift ;; esac - $PROG file $head | perl -e ' + echo "$PROG file $head" >&4 + $PROG file $head >.result || return 1 + cat .result | perl -e ' my %expect = (@ARGV); my %count = (); while () { @@ -111,7 +113,9 @@ test_expect_success \ test_expect_success \ 'some edit' \ - 'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file && + 'mv file file.orig && + sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" < file.orig > file && + echo "incomplete" | tr -d "\\012" >>file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \