diff options
author | Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk> | 2006-07-29 20:20:41 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-02 11:27:17 +0400 |
commit | 1fd4da643cb829618bbe76ab37df7f1b4dafc656 (patch) | |
tree | 2cfd2ec864b55135bf5ad23035698ec0905fc36e /t | |
parent | 6ebdee5af47df0c64354e452419015a694c25f5f (diff) |
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>
Diffstat (limited to 't')
-rw-r--r-- | t/annotate-tests.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index b6a2edd887..8baf2fef69 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -4,7 +4,8 @@ check_count () { head= case "$1" in -h) head="$2"; shift; shift ;; esac - $PROG file $head | perl -e ' + $PROG file $head >.result || return 1 + cat .result | perl -e ' my %expect = (@ARGV); my %count = (); while (<STDIN>) { |