{"action":"created","issue":{"url":"https://api.github.com/repos/github/git-lfs/issues/540","labels_url":"https://api.github.com/repos/github/git-lfs/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/github/git-lfs/issues/540/comments","events_url":"https://api.github.com/repos/github/git-lfs/issues/540/events","html_url":"https://github.com/github/git-lfs/pull/540","id":98071155,"number":540,"title":"Fix test race condition","user":{"login":"technoweenie","id":21,"avatar_url":"https://avatars.githubusercontent.com/u/21?v=3","gravatar_id":"","url":"https://api.github.com/users/technoweenie","html_url":"https://github.com/technoweenie","followers_url":"https://api.github.com/users/technoweenie/followers","following_url":"https://api.github.com/users/technoweenie/following{/other_user}","gists_url":"https://api.github.com/users/technoweenie/gists{/gist_id}","starred_url":"https://api.github.com/users/technoweenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technoweenie/subscriptions","organizations_url":"https://api.github.com/users/technoweenie/orgs","repos_url":"https://api.github.com/users/technoweenie/repos","events_url":"https://api.github.com/users/technoweenie/events{/privacy}","received_events_url":"https://api.github.com/users/technoweenie/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-30T02:20:28Z","updated_at":"2015-07-30T14:43:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/git-lfs/pulls/540","html_url":"https://github.com/github/git-lfs/pull/540","diff_url":"https://github.com/github/git-lfs/pull/540.diff","patch_url":"https://github.com/github/git-lfs/pull/540.patch"},"body":"This attempts to fix the race condition regarding `$HOME` in the integration tests.\r\n\r\nNow, an initial `$TESTHOME` is setup at `$REMOTEDIR/home`. It has the starting git config and OSX keychain (if needed). `begin_test()` resets `$HOME` to `$TRASHDIR/home`, which is unique per test script. Tests run sequentially in a single script.\r\n\r\nI also ran into an issue where `begin_test()` was silently failing, causing the scripts to bail after the first test. So, I added something in `shutdown()` that ensures every test runs by grepping the file for all `begin_test()` calls."},"comment":{"url":"https://api.github.com/repos/github/git-lfs/issues/comments/126352406","html_url":"https://github.com/github/git-lfs/pull/540#issuecomment-126352406","issue_url":"https://api.github.com/repos/github/git-lfs/issues/540","id":126352406,"user":{"login":"technoweenie","id":21,"avatar_url":"https://avatars.githubusercontent.com/u/21?v=3","gravatar_id":"","url":"https://api.github.com/users/technoweenie","html_url":"https://github.com/technoweenie","followers_url":"https://api.github.com/users/technoweenie/followers","following_url":"https://api.github.com/users/technoweenie/following{/other_user}","gists_url":"https://api.github.com/users/technoweenie/gists{/gist_id}","starred_url":"https://api.github.com/users/technoweenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technoweenie/subscriptions","organizations_url":"https://api.github.com/users/technoweenie/orgs","repos_url":"https://api.github.com/users/technoweenie/repos","events_url":"https://api.github.com/users/technoweenie/events{/privacy}","received_events_url":"https://api.github.com/users/technoweenie/received_events","type":"User","site_admin":true},"created_at":"2015-07-30T14:43:52Z","updated_at":"2015-07-30T14:43:52Z","body":"With @sinbad's help, I was able to replicate the issue that he fixed in #520. We both confirmed that this PR doesn't undo those fixes."}}