[pypy-svn] r48962 - pypy/dist/pypy/translator/microbench
antocuni at codespeak.net
antocuni at codespeak.net
Fri Nov 23 00:05:33 CET 2007
Author: antocuni
Date: Fri Nov 23 00:05:30 2007
New Revision: 48962
Modified:
pypy/dist/pypy/translator/microbench/microbench.py
Log:
print the unexpected output in case of error
Modified: pypy/dist/pypy/translator/microbench/microbench.py
==============================================================================
--- pypy/dist/pypy/translator/microbench/microbench.py (original)
+++ pypy/dist/pypy/translator/microbench/microbench.py Fri Nov 23 00:05:30 2007
@@ -52,7 +52,11 @@
data = [s for s in os.popen(exe + ' microbench.py %s 2>&1' % limit).readlines() if not s.startswith('debug:')]
benchdata = {}
for d in data:
- testcase, took, duration, seconds = d.split()
+ try:
+ testcase, took, duration, seconds = d.split()
+ except ValueError:
+ print >> sys.stderr, 'Unexpected output:\n%s' % d
+ sys.exit(1)
benchdata[testcase] = float(duration)
if n == 0:
benchdata_ref = benchdata
More information about the Pypy-commit
mailing list