X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8001-annotate.sh;h=41962f04a715ea5250360766dc64986c4ecf7981;hb=969fe57b844a514747c1d5d66e0698dc53ed473d;hp=45cb60ea4b167676b07ae1c847c0467f2a5e3d69;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/t/t8001-annotate.sh b/t/t8001-annotate.sh index 45cb60ea4..41962f04a 100755 --- a/t/t8001-annotate.sh +++ b/t/t8001-annotate.sh @@ -6,10 +6,11 @@ test_description='git annotate' PROG='git annotate' . "$TEST_DIRECTORY"/annotate-tests.sh -test_expect_success \ - 'Annotating an old revision works' \ - '[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \ - [ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]' - +test_expect_success 'Annotating an old revision works' ' + git annotate file master >result && + awk "{ print \$3; }" authors && + test 2 = $(grep A