Error code of NumpyTest()
![](https://secure.gravatar.com/avatar/60e03bd1fd9f2dbc750e0899b9e7e71d.jpg?s=120&d=mm&r=g)
Hi, I wondered if there was a way of returning another error code than 0 when executing the test suite so that a parent process can immediately know if all the tests passed or not. The numpy buildbot seems to have the same behaviour BTW. I don't know if it is possible, but it would be great. Matthieu
![](https://secure.gravatar.com/avatar/2a726b0de1ade0be11fb5bc5a383d71d.jpg?s=120&d=mm&r=g)
On Fri, August 24, 2007 11:41 am, Matthieu Brucher wrote:
The svn version of test() function now returns TestResult object. So, test() calls in buildbot should read: import numpy,sys; sys.exit(not numpy.test(verbosity=9999,level=9999).wasSuccessful()) Hopefully buildbot admins can update the test commands accordingly. Pearu
![](https://secure.gravatar.com/avatar/60e03bd1fd9f2dbc750e0899b9e7e71d.jpg?s=120&d=mm&r=g)
Thank you for the answer The svn version of test() function now returns TestResult object. Numpy 1.3.x does not provide this ? I can't upgrade the numpy packages on the Linux boxes (on the Windows box, I suppose that I could use an Enthought egg). So, test() calls in buildbot should read:
I'll be able to do this as the tests are located on the repository. Matthieu
![](https://secure.gravatar.com/avatar/2a726b0de1ade0be11fb5bc5a383d71d.jpg?s=120&d=mm&r=g)
On Fri, August 24, 2007 11:41 am, Matthieu Brucher wrote:
The svn version of test() function now returns TestResult object. So, test() calls in buildbot should read: import numpy,sys; sys.exit(not numpy.test(verbosity=9999,level=9999).wasSuccessful()) Hopefully buildbot admins can update the test commands accordingly. Pearu
![](https://secure.gravatar.com/avatar/60e03bd1fd9f2dbc750e0899b9e7e71d.jpg?s=120&d=mm&r=g)
Thank you for the answer The svn version of test() function now returns TestResult object. Numpy 1.3.x does not provide this ? I can't upgrade the numpy packages on the Linux boxes (on the Windows box, I suppose that I could use an Enthought egg). So, test() calls in buildbot should read:
I'll be able to do this as the tests are located on the repository. Matthieu
participants (3)
-
Matthieu Brucher
-
Pearu Peterson
-
Stefan van der Walt