]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Mar 2021 14:13:48 +0000 (14:13 +0000)
commit132a17d02f29711572e14a2f38a841323fbb6df6
tree015f64f080fe24e2ac6e46c8cabf9b14d3e83f2e
parentb4b5e52b5bd98deb0855700e4aae6228d52e5a83
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>
meta/lib/oeqa/selftest/cases/reproducible.py