t7004-tag: delete unnecessary tags with test_when_finished
commiteba286e31012335370aedb7572ff51df549eb3f3
authorSZEDER Gábor <szeder.dev@gmail.com>
Thu, 8 Dec 2016 14:23:55 +0000 (8 15:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Dec 2016 19:11:57 +0000 (8 11:11 -0800)
tree15964dd23e98bb62b5f72ef992fd977292351491
parent8d7a455ed52e2a96debc080dfc011b6bb00db5d2
t7004-tag: delete unnecessary tags with test_when_finished

The '--force is moot with a non-existing tag name' test creates two
new tags, which are then deleted right after the test is finished,
outside the test_expect_success block, allowing 'git tag -d's output to
pollute the test output.

Use test_when_finished to delete those tags.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh