From bb1f083e7a393e9c6b4438fbf6f89c489a579f29 Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 26 Jul 2018 10:39:47 +0100 Subject: [PATCH] Fudge the environment passed to git Change-Id: I7b1e4f2d9c747f4560745a1d1cad65317182a63b --- tests/broker/brokertest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/broker/brokertest.py b/tests/broker/brokertest.py index 2ee6b0067..93ae8e8ca 100755 --- a/tests/broker/brokertest.py +++ b/tests/broker/brokertest.py @@ -608,6 +608,8 @@ def gitcommand_raw(self, command, **kwargs): args = [command] args.insert(0, self.config.lookup_tool("git")) env = self.gitenv(kwargs.pop("env", None)) + env["HOME"] = os.environ.get("HOME", "/home/travis") + p = Popen(args, stdout=PIPE, stderr=PIPE, env=env, **kwargs) return p