Re: [PATCHv2] git-remote-testgit: fix race when spawning fast-import
- From
Junio C Hamano <junio@pobox.com>
- Date
- Apr 23, 2012, 02:40 UTC
- Message-ID
- <xmqq4nsbmapw.fsf@junio.mtv.corp.google.com>
- In-Reply-To
- <20120422203058.GA17290@padd.com>
Pete Wyckoff <pw@padd.com> writes:
> Clemens suggested disabling the test by default, as I've done > here. I think it would be okay to remove it entirely, too.
Ok.
Show 7 quoted lines
> +# Generally, skip this test. It demonstrates a now-fixed
> +# race in git-remote-testgit, but is too slow to leave in
> +# for general use.
> +test_expect_success DEBUG_TESTGIT_RACE 'racily pushing to local repo' '
> + cp -a server server2 &&
> + git clone "testgit::${PWD}/server2" localclone2 &&
> + test_when_finished "rm -rf server2 localclone2" &&Shouldn't test_when_finished come before these two commands? Otherwise server2 or localclone2 directories will be left behind when they fail before control reaches it...