[OE-core] [PATCH] ptest-runner: return 1 instead of zero if any test fails

Laszlo Papp lpapp at kde.org
Fri Aug 29 10:54:01 UTC 2014


On Mon, Aug 25, 2014 at 7:42 AM, Stoicescu, CorneliuX
<corneliux.stoicescu at intel.com> wrote:
> Hello,
>
> From my experience with ptest, there will always be a few tests failing, so we will always get exit code 1.

Ptest is not only about meta-core, you need to remember that. My use
case is actually quite different: running ptest only on my binaries,
and I will trust the rest of the system. For me, it is critical to see
if there is any issues in my system. This patch resolves that use
case, but even for Yocto, you really oughta aim for fixing your tests,
either with "known failure" or correct means.

> Should this better return exit code 0 if the individual tests performed correctly(weather they passed or failed) and 1 if there were any errors during the running of the tests?

I do not understand this question. This is what the current change tries to do.



More information about the Openembedded-core mailing list