Fix annotate test script; notice when git-annotate fails.
authorRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>
Sat, 29 Jul 2006 16:20:41 +0000 (17:20 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 2 Aug 2006 07:27:17 +0000 (00:27 -0700)
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>
t/annotate-tests.sh

index b6a2edd8878c910ad177b8b277bedf99f60d9416..8baf2fef69ba6a67641d2b9ba4dc44468aa31ada 100644 (file)
@@ -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>) {