[PATCH] mock: set the HOME environment variable