add. try finally block to ensure that teardown gets called after init_test_repo.
add. try finally block to ensure that teardown gets called after init_test_repo.

Change-Id: I23085215b17ac7ba82cd5f272c139bd5d60ee668

linearregression/git-deploy