]> git.ipfire.org Git - thirdparty/git.git/commit
t1400: assert output of update-ref
authorAndrei Rybak <rybak.a.v@gmail.com>
Sat, 18 Mar 2023 15:46:44 +0000 (16:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Mar 2023 16:11:42 +0000 (09:11 -0700)
commit94f07b55443147fce3c7fb46e97d696da3ce8d55
treeac00984f4fbc383b542305b4f8ebc5aebceb89ed
parent17ae7f758e728ac40e326a3ab82a7727d735484a
t1400: assert output of update-ref

In t1400-update-ref.sh test 'transaction can create and delete' creates
files "expect" and "actual", but doesn't compare them.  Similarly, test
'transaction cannot restart ongoing transaction' redirects output of
"git update-ref" to file "actual", but doesn't check its contents with
any assertions.

Assert output of "git update-ref" in tests to improve test coverage in
t1400-update-ref.sh.

Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh