Fix environment call for failing tests

This commit is contained in:
Anthony Johnson 2015-07-12 12:30:07 -07:00
parent 44d6211a9e
commit 9da28aa6f3

View File

@ -32,7 +32,8 @@ class DotNetSphinxMapper(SphinxMapperBase):
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
env=dict((key, os.environ[key]) env=dict((key, os.environ[key])
for key in ['PATH', 'DNX_PATH', 'HOME'])) for key in ['PATH', 'DNX_PATH', 'HOME']
if key in os.environ))
_, error_output = proc.communicate() _, error_output = proc.communicate()
if error_output: if error_output:
self.app.warn(error_output) self.app.warn(error_output)