X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7509-commit.sh;h=643ab03f992be8339b169b3bef0922ff3cdb04b9;hb=1f238da57334ca0155ae7560b173eefc8c4c157a;hp=3ea33db6c73df763c22ccfab9f0cdcb2bbaef4d7;hpb=c01a29c74ff991faf3012882fbf676b182b8893f;p=git.git diff --git a/t/t7509-commit.sh b/t/t7509-commit.sh index 3ea33db6c..643ab03f9 100755 --- a/t/t7509-commit.sh +++ b/t/t7509-commit.sh @@ -111,7 +111,7 @@ test_expect_success '--amend option with empty author' ' test_when_finished "git checkout Initial" && echo "Empty author test" >>foo && test_tick && - ! git commit -a -m "empty author" --amend 2>err && + test_must_fail git commit -a -m "empty author" --amend 2>err && grep "empty ident" err ' @@ -125,7 +125,7 @@ test_expect_success '--amend option with missing author' ' test_when_finished "git checkout Initial" && echo "Missing author test" >>foo && test_tick && - ! git commit -a -m "malformed author" --amend 2>err && + test_must_fail git commit -a -m "malformed author" --amend 2>err && grep "empty ident" err '