]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
ptest-cargo: fix tests output format for testimage
authorInes KCHELFI <ines.kchelfi@smile.fr>
Mon, 12 May 2025 14:44:11 +0000 (16:44 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 May 2025 09:54:58 +0000 (10:54 +0100)
commit6a9356346f13556a06d4a99bd7924992c7e29d66
treef2f0097daaf114d2760d2fe913f1c8e0382c34ec
parent26a73392524f648015d55bf421a9b1bf5ac0d955
ptest-cargo: fix tests output format for testimage

In testimage, the ptest-runner output parser expects test results to follow
a specific format,with lines beginning with PASS:, FAIL:, or SKIP:. ptest-cargo,
currently, does not emit any of those lines and the parser treats the test
section as having no results, causing a test failure with :

AssertionError:
ptests which had no test results:
['<package>']

This patch ensures that the recipes using ptest-cargo class explicitly emits
PASS: or FAIL: lines, making the results compatible with the test parser and
preventing test failures.

Signed-off-by: Ines KCHELFI <ines.kchelfi@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/ptest-cargo.bbclass