Skip to content

Commit 1fd4da6

Browse files
Ramsay Allan JonesJunio C Hamano
authored andcommitted
Fix annotate test script; notice when git-annotate fails.
The t8001-annotate.sh test claimed all tests pass, when in fact the git-annotate perl script failed to run! (prior to fixing the script to work with perl 5.5). Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 6ebdee5 commit 1fd4da6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/annotate-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
check_count () {
55
head=
66
case "$1" in -h) head="$2"; shift; shift ;; esac
7-
$PROG file $head | perl -e '
7+
$PROG file $head >.result || return 1
8+
cat .result | perl -e '
89
my %expect = (@ARGV);
910
my %count = ();
1011
while (<STDIN>) {

0 commit comments

Comments
 (0)