t5801: don't use test_when_finished in a subshell
commitc545bc6266e36fdb798cf79fd1f7ef9f39791a94
authorJohn Keeping <john@keeping.me.uk>
Sat, 5 Sep 2015 13:12:46 +0000 (5 14:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2015 17:34:59 +0000 (8 10:34 -0700)
treec880e97efa592db692d21f6cdab418dfb30ca871
parent1a9a23e35c1ba75187ee600fb7a1f107a2fb1893
t5801: don't use test_when_finished in a subshell

test_when_finished has no effect in a subshell.  Since the cmp_marks
function is only used once, inline it at its call site and move the
test_when_finished invocation to the start of the test.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5801-remote-helpers.sh