[pypy-svn] r20331 - pypy/dist/pypy/translator/js/test

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Nov 28 10:50:22 CET 2005


Author: ericvrp
Date: Mon Nov 28 10:50:21 2005
New Revision: 20331

Modified:
   pypy/dist/pypy/translator/js/test/runtest.py
Log:
Output debug info but keep the last line as the call result.




Modified: pypy/dist/pypy/translator/js/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/js/test/runtest.py	Mon Nov 28 10:50:21 2005
@@ -36,12 +36,14 @@
 
         if use_browsertest:
             jstestcase = '%s(%s)' % (self.js.graph.name, args)
-            s = jstest(self.js.filename, jstestcase)
+            output = jstest(self.js.filename, jstestcase)
         else:
             wrappercode = self.js.wrappertemplate % args
             cmd = 'echo "%s" | js 2>&1' % wrappercode
             log(cmd)
-            s   = os.popen(cmd).read().strip()
+            output = os.popen(cmd).read().strip()
+        for s in output.split('\n'):
+            log(s)
 
         if s == 'false':
             res = False



More information about the Pypy-commit mailing list