]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3800-mktag.sh
t/t3800: do not use a temporary file to hold expected result.
authorJunio C Hamano <gitster@pobox.com>
Sat, 5 Jan 2008 06:45:08 +0000 (22:45 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Jan 2008 08:07:57 +0000 (00:07 -0800)
commite9b20943b7713ed7c051621f97e12713ccf98e1f
tree5b739c6c0e35b116f4653ab447a64f463f4b7855
parent0feb4d1c99ef4188123ff38d702bcbdd483c3702
t/t3800: do not use a temporary file to hold expected result.

It is a good practice to write program output to a temporary file
during the test, as it would allow easier postmortem when the tested
program does break.  But there is no benefit in writing the expected
output out to the temporary.

This actually fixes a bug in check_verify_failure() routine.
The intention of the test seems to make sure the "git mktag" command
fails, and it spits out the expected error message.  But if the
command did not fail as expected, the shell function as originally
written would not have detected the failure.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3800-mktag.sh