]> code.ossystems Code Review - openembedded-core.git/commit
selftest/reproducible: Add ability to pull some objects from sstate
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Feb 2021 14:24:26 +0000 (14:24 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 11 Mar 2021 15:00:02 +0000 (05:00 -1000)
commit8b38cd1b36f3e227a63c0aa3955f3f5ab172c509
treed1c31e62a00fc02b71b14504bc42e6548ca9333d
parent4ce08e6fa4e72d70badb1892f48d593a37f063ad
selftest/reproducible: Add ability to pull some objects from sstate

When debugging why a single recipe doesn't reproduce, its a pain
to wait for the world to rebuild from scratch. Update the selftest
to allow this to be configured, for example you could set
targets as ['perf'] and sstate_targets as ['virtual/kernel']
and then it should only be rebuilding perf in the test rather than
things like the toolchain (parts of the kernel may be unavoiable
as they're not in sstate).

Can be run as:

OEQA_DEBUGGING_SAVED_OUTPUT=/tmp/perf-diffoscope oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds

to save diffoscope output.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 132a17d02f29711572e14a2f38a841323fbb6df6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/reproducible.py