Author: Matti Picus <[email protected]>
Branch: numpy-tests
Changeset: r899:3be765a8c73d
Date: 2013-11-25 00:06 +0200
http://bitbucket.org/pypy/buildbot/changeset/3be765a8c73d/

Log:    use pytest, get nice failure logs

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -836,6 +836,13 @@
             haltOnFailure=True,
             ))
 
+        self.addStep(ShellCmd(
+            description="install pytest",
+            command=['install/bin/pip', 'install','pytest'],
+            workdir='./',
+            haltOnFailure=True,
+            ))
+
         # obtain a pypy-compatible branch of numpy
         numpy_url = 'https://www.bitbucket.org/pypy/numpy'
         numpy_pypy_branch = 'pypy-compat'
@@ -847,14 +854,16 @@
             command=['../install/bin/python', 'setup.py','install'],
             workdir='numpy_src'))
 
-        self.addStep(ShellCmd(
+        #test_cmd = 'bin/nosetests'
+        test_cmd = 'bin/py.test'
+        self.addStep(PytestCmd(
             description="test numpy",
-            command=['bin/nosetests', 'site-packages/numpy',
+            command=[test_cmd, 'site-packages/numpy',
+                     "--resultlog=testrun.log",
                     ],
-            #logfiles={'pytestLog': 'pytest-numpy.log'},
-            timeout=4000,
+            logfiles={'pytestLog': 'testrun.log'},
+            timeout=1000,
             workdir='install',
-            #env={"PYTHONPATH": ['download']}, # shouldn't be needed, but what 
if it is set externally?
         ))
         if host == 'tannit':
             pypy_c_rel = 'install/bin/python'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to