Hi Derek, Thanks! I forgot that python would exit with 0 even if numpy.test() fails. That could have taken a while to realize.
Chris On Wed, Sep 7, 2011 at 4:22 PM, Derek Homeier <de...@astro.physik.uni-goettingen.de> wrote: > On 07.09.2011, at 10:52PM, Chris Kees wrote: > >> Is there a recommended way to run the numpy test suite as a buildbot >> test? Just run ad python -c "import numpy; numpy.test" as ShellCommand >> object? > > It would be numpy.test() [or numpy.test('full')]; then it depends on what you > need > as the return value of your test. I am using for package verification > > python -c 'import numpy, sys; ret=numpy.test("full"); > sys.exit(2*len(ret.errors+ret.failures))' > > so python will return with a value != 0 in case of an unsuccessful test > (which it > otherwise would not do). But this is just within a simple shell script. > > Cheers, > Derek > -- > ---------------------------------------------------------------- > Derek Homeier Centre de Recherche Astrophysique de Lyon > ENS Lyon 46, Allée d'Italie > 69364 Lyon Cedex 07, France +33 1133 47272-8894 > ---------------------------------------------------------------- > > > > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion