[pypy-commit] pypy default: work around windows limitations with PYPYLOG=C:\some\path and copy complete env to subprocess

mattip noreply at buildbot.pypy.org
Fri Jun 13 15:41:01 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r72042:8fe4873384ce
Date: 2014-06-13 15:52 +0300
http://bitbucket.org/pypy/pypy/changeset/8fe4873384ce/

Log:	work around windows limitations with PYPYLOG=C:\some\path and copy
	complete env to subprocess

diff --git a/rpython/jit/backend/llsupport/test/zrpy_gc_test.py b/rpython/jit/backend/llsupport/test/zrpy_gc_test.py
--- a/rpython/jit/backend/llsupport/test/zrpy_gc_test.py
+++ b/rpython/jit/backend/llsupport/test/zrpy_gc_test.py
@@ -107,7 +107,9 @@
 def run(cbuilder, args=''):
     #
     pypylog = udir.join('test_zrpy_gc.log')
-    data = cbuilder.cmdexec(args, env={'PYPYLOG': ':%s' % pypylog})
+    env = os.environ.copy()
+    env['PYPYLOG'] = ':%s' % pypylog
+    data = cbuilder.cmdexec(args, env=env)
     return data.strip()
 
 # ______________________________________________________________________
@@ -179,8 +181,9 @@
 
     def run(self, name, n=2000):
         pypylog = udir.join('TestCompileFramework.log')
-        env = {'PYPYLOG': ':%s' % pypylog,
-               'PYPY_NO_INLINE_MALLOC': '1'}
+        env = os.environ.copy()
+        env['PYPYLOG'] = ':%s' % pypylog
+        env['PYPY_NO_INLINE_MALLOC'] = '1'
         self._run(name, n, env)
         env['PYPY_NO_INLINE_MALLOC'] = ''
         self._run(name, n, env)


More information about the pypy-commit mailing list