t1400: use test_when_finished for cleanup
commit2405ed07ca1d2b2f8c3d1825f1fee8ccdbf22a40
authorKyle Meyer <kyle@kyleam.com>
Tue, 21 Mar 2017 00:56:16 +0000 (20 20:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2017 17:50:17 +0000 (21 10:50 -0700)
treeff0e22ba4d60369f32eaa3ae1e0bd7114490225a
parente063e5d7daa6440911b17d518dabc52f3fc42162
t1400: use test_when_finished for cleanup

Move cleanup lines that occur after test blocks into
test_when_finished calls within the test bodies.  Don't move cleanup
lines that seem to be related to mutiple tests rather than a single
test.

Signed-off-by: Kyle Meyer <kyle@kyleam.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh