[pypy-svn] r76375 - in pypy/branch/improved-asm-logging/pypy/jit/backend/x86: . test

fijal at codespeak.net fijal at codespeak.net
Tue Jul 27 19:20:35 CEST 2010


Author: fijal
Date: Tue Jul 27 19:20:33 2010
New Revision: 76375

Modified:
   pypy/branch/improved-asm-logging/pypy/jit/backend/x86/assembler.py
   pypy/branch/improved-asm-logging/pypy/jit/backend/x86/test/test_runner.py
Log:
Support different forms of PYPYLOG variable


Modified: pypy/branch/improved-asm-logging/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/improved-asm-logging/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/improved-asm-logging/pypy/jit/backend/x86/assembler.py	Tue Jul 27 19:20:33 2010
@@ -169,6 +169,8 @@
                 self._build_malloc_fixedsize_slowpath()
             s = os.environ.get('PYPYLOG')
             if s:
+                if s.find(':') != -1:
+                    s = s.split(':')[-1]
                 self.set_debug(True)
                 self._output_loop_log = s + ".count"
 

Modified: pypy/branch/improved-asm-logging/pypy/jit/backend/x86/test/test_runner.py
==============================================================================
--- pypy/branch/improved-asm-logging/pypy/jit/backend/x86/test/test_runner.py	(original)
+++ pypy/branch/improved-asm-logging/pypy/jit/backend/x86/test/test_runner.py	Tue Jul 27 19:20:33 2010
@@ -398,7 +398,7 @@
     def setup_method(self, meth):
         self.pypylog = os.environ.get('PYPYLOG', None)
         self.logfile = str(udir.join('x86_runner.log'))
-        os.environ['PYPYLOG'] = self.logfile
+        os.environ['PYPYLOG'] = "mumble:" + self.logfile
         self.cpu = CPU(rtyper=None, stats=FakeStats())
 
     def teardown_method(self, meth):



More information about the Pypy-commit mailing list