Commit df271e89 authored by Pietro Albini's avatar Pietro Albini

Fix gulp builds failing when running managetests under upstart

Fixes #8
parent eb98fc63
......@@ -102,8 +102,13 @@ class Branch:
"rm -rf %s/%s/*" % (self.manager.caches_dir, self.name),
]
# Provide to the command the current environment plus $HOME
# gulp fails otherwise
env = dict(os.environ)
env["HOME"] = self.manager.build_dir
for command in commands:
subprocess.call(command, shell=True)
subprocess.call(command, shell=True, env=env)
self.manager.details["branches"][self.name] = self.mr
self.manager.save_details()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment