[Buildroot] [PATCH 1/5] support/testing: core testing infrastructure

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Feb 8 10:05:56 UTC 2017


Hello,

On Wed, 8 Feb 2017 10:50:13 +0100, Thomas De Schampheleire wrote:

> Is there a particular reason why you use unittest and nose2, rather
> than the popular pytest ?

First because I'm not a Pythonist, so I have no idea what is "popular"
in the Python world.

What lead me to use nose2 is because it is capable of executing tests
in parallel. In practice, this currently doesn't work due to how the
Qemu emulation is started (I use a fixed TCP port for the telnet
connection used for the serial port), but if we fix that, tests can be
executed in parallel, this is something I had tested when choosing
nose2.

Apparently, pytest can also run tests in parallel, according to
http://pytest.org/dev/xdist.html.

I honestly don't care which Python testing infrastructure is used, as
long as there is one. If you think pytest is better (and indeed its
website seems to be nicely documented and it seems to offer lots of
features), then patches are welcome :-)

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list