Skip to content
  • Johannes Sixt's avatar
    t6026: clarify the point of "kill $(cat sleep.pid)" · fdf4f6c7
    Johannes Sixt authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    We lengthened the time the leftover process sleeps in the previous
    commit to make sure it will be there while 'git merge' runs and
    finishes.  It therefore needs to be killed before leaving the test.
    And it needs to be killed even when 'git merge' fails, so it has to
    be triggered via test_when_finished mechanism.
    
    Explain all that in a large comment, and move the use site of
    test_when_finished to immediately before 'git merge' invocation,
    where the process is spawned.
    
    Signed-off-by: default avatarJohannes Sixt <j6t@kdbg.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    fdf4f6c7