# # # patch "tests/t_heads_of_certs.at" # from [c4eba5ef64458d236a48bb61b16f859fac040dd4] # to [dc888dcf9c204004dc24ca83deadff2b42181bbb] # ============================================================ --- tests/t_heads_of_certs.at c4eba5ef64458d236a48bb61b16f859fac040dd4 +++ tests/t_heads_of_certs.at dc888dcf9c204004dc24ca83deadff2b42181bbb @@ -19,12 +19,15 @@ AT_CHECK(MONOTONE cert $SECOND testcert AT_CHECK(MONOTONE cert $FIRST testcert 'value=with=equal=signs') AT_CHECK(MONOTONE cert $SECOND testcert 'value') -# Check that a log with no H: fails... -AT_CHECK(MONOTONE log --revision 'c:testcert', [1], [ignore], [stderr]) -AT_CHECK(grep 'has multiple ambiguous expansions' stderr, [0], [ignore]) +# Check that a log without H: gives both the first and second commit... +AT_CHECK(MONOTONE log --revision 'c:testcert' --last=1, [0], [stdout], [ignore]) +AT_CHECK(grep "Revision: $FIRST" stdout, [0], [ignore]) +AT_CHECK(grep "Revision: $SECOND" stdout, [0], [ignore]) -# Check that a log with H: succeeds... -AT_CHECK(MONOTONE log --revision='H:c:testcert', [], [stdout], [ignore]) +# Check that a log with H: gives only the second commit... +AT_CHECK(MONOTONE log --revision='H:c:testcert' --last=1, [0], [stdout], [stderr]) +AT_CHECK(grep "Revision: $FIRST" stdout, [1], [ignore]) +AT_CHECK(grep "Revision: $SECOND" stdout, [0], [ignore]) # Note that if the third revision is in the log, something else is wrong... # There is really no case for this last test, just paranoia. AT_CHECK(grep $THIRD stdout, [1], [ignore], [ignore])