[pypy-commit] pypy default: Attempt to have error messages reach the buildbot output

arigo noreply at buildbot.pypy.org
Tue May 28 16:19:03 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r64624:e68b3de71eb7
Date: 2013-05-28 16:18 +0200
http://bitbucket.org/pypy/pypy/changeset/e68b3de71eb7/

Log:	Attempt to have error messages reach the buildbot output

diff --git a/pypy/module/pypyjit/test_pypy_c/test_bug.py b/pypy/module/pypyjit/test_pypy_c/test_bug.py
--- a/pypy/module/pypyjit/test_pypy_c/test_bug.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_bug.py
@@ -9,6 +9,7 @@
 
     cmdline = ['taskset', '-c', '0',
                sys.executable, os.path.join(localdir, 'bug1.py')]
-    popen = subprocess.Popen(cmdline)
+    popen = subprocess.Popen(cmdline, stderr=subprocess.PIPE)
+    errmsg = popen.stderr.read()
     err = popen.wait()
-    assert err == 0
+    assert err == 0, "err = %r, errmsg:\n%s" % (err, errmsg)


More information about the pypy-commit mailing list