]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ptest-cargo.bbclass: sort binaries for reproducibility
authorGyorgy Sarvari <skandigraun@gmail.com>
Fri, 5 Sep 2025 15:44:47 +0000 (17:44 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Sep 2025 17:02:37 +0000 (18:02 +0100)
commit0fdc3ce4e3ecc6519aef680884d88f33c805a20d
tree6c6e3751b676e219e625cfa17851debc04701df9
parent8f1538518fd3a3017189b38437691ce358a2566a
ptest-cargo.bbclass: sort binaries for reproducibility

When compiling tests with cargo, the produced binaries are created
in a non-deterministic order. The list of binaries themselves are taken from
some of the log info produced by cargo, which contains them in the order
as they were created. The class later writes this list of binaries
in the run-ptest script in the order that it found them.

In case the test suite contains more than 1 or 2 binaries, then the
order of these binaries is different almost each run, making the
resulting ptest package non-reproducible.

To avoid this, sort the list of test binaries before storing them.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
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