Author: Armin Rigo <[email protected]>
Branch:
Changeset: r205:4a34e2726d88
Date: 2013-04-17 18:21 +0200
http://bitbucket.org/pypy/benchmarks/changeset/4a34e2726d88/
Log: Improve the output in case of error
diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -159,9 +159,13 @@
out, err = proc.communicate()
retcode = proc.poll()
if retcode != 0:
- print out
- print err
- raise Exception("translate.py failed")
+ if out is not None:
+ print '---------- stdout ----------'
+ print out
+ if err is not None:
+ print '---------- stderr ----------'
+ print err
+ raise Exception("translate.py failed, retcode %r" % (retcode,))
lines = err.splitlines()
timings = parse_timer(lines)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit