X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8001-annotate.sh;h=41962f04a715ea5250360766dc64986c4ecf7981;hb=018443526875456d335fef2dfbc78bc4de2d340d;hp=45cb60ea4b167676b07ae1c847c0467f2a5e3d69;hpb=74f6e0505bb854db5b25ba977432471fed218a73;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