diff options
| author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-06-13 11:14:51 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-15 09:53:38 +0100 |
| commit | 76e5fcb2d1a7f7b22a6f5412f42df388e0188c3c (patch) | |
| tree | 0253987c42411ba55b18a4a3564371c2d2efa1f3 | |
| parent | a409dfdffcab0acf8555315dc7bff923edd6d3e2 (diff) | |
| download | poky-76e5fcb2d1a7f7b22a6f5412f42df388e0188c3c.tar.gz | |
selftest reproducible.py: support different build targets
Allow users to set different build reproducibility targets than
the defaults using OEQA_REPRODUCIBLE_TEST_TARGET and
OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS variables in local.conf.
Fixing all issues from "world" builds is not possible in some
complex build environments with lots of layers. Limiting the focus to
a smaller subset allows using this test to detect and fix build
reproduction issues incrementally.
(From OE-Core rev: c66bebbce5995e386a1a4d055a914a39b6ee518d)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/reproducible.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py index 1f0ed32fa0..e9447a2a92 100644 --- a/meta/lib/oeqa/selftest/cases/reproducible.py +++ b/meta/lib/oeqa/selftest/cases/reproducible.py | |||
| @@ -134,9 +134,13 @@ class ReproducibleTests(OESelftestTestCase): | |||
| 134 | max_report_size = 250 * 1024 * 1024 | 134 | max_report_size = 250 * 1024 * 1024 |
| 135 | 135 | ||
| 136 | # targets are the things we want to test the reproducibility of | 136 | # targets are the things we want to test the reproducibility of |
| 137 | targets = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'core-image-weston', 'world'] | 137 | targets = get_bb_var("OEQA_REPRODUCIBLE_TEST_TARGET") |
| 138 | if targets: | ||
| 139 | targets = targets.split() | ||
| 140 | else: | ||
| 141 | targets = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'core-image-weston', 'world'] | ||
| 138 | # sstate targets are things to pull from sstate to potentially cut build/debugging time | 142 | # sstate targets are things to pull from sstate to potentially cut build/debugging time |
| 139 | sstate_targets = [] | 143 | sstate_targets = (get_bb_var("OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS") or "").split() |
| 140 | save_results = False | 144 | save_results = False |
| 141 | if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ: | 145 | if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ: |
| 142 | save_results = os.environ['OEQA_DEBUGGING_SAVED_OUTPUT'] | 146 | save_results = os.environ['OEQA_DEBUGGING_SAVED_OUTPUT'] |
