X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=b5ceba4acfd8e862cfc5a77672241e07205f70ea;hb=9299c4f147bcff603eef187eb04fe38153571d30;hp=9c5a15a15e6be5548f7cc8836286cc5a8b39d4ca;hpb=9c3592cf3cf9a9d49ad9a69b76d2be130a21d499;p=git.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index 9c5a15a15..b5ceba4ac 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 () { @@ -94,7 +96,7 @@ test_expect_success \ test_expect_success \ 'merge-setup part 4' \ 'echo "evil merge." >>file && - EDITOR=: git commit -a --amend' + git commit -a --amend' test_expect_success \ 'Two lines blamed on A, one on B, two on B1, one on B2, one on A U Thor' \ @@ -111,9 +113,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 -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \