summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-07-06 15:01:04 +0200
committerSteve Sakoman <steve@sakoman.com>2023-07-21 06:27:34 -1000
commit17110ad8f5bb06210cc722235c2a84d54ef14b6c (patch)
treef001987672e82709e5c08ca180d8348b8c808f9c
parent4a93bab7a427f1859c3dda29100deae1fdaa6aec (diff)
downloadpoky-17110ad8f5bb06210cc722235c2a84d54ef14b6c.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: 3b82a7d74995c0670a6914c58b3d7c42327b8ee9) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit c66bebbce5995e386a1a4d055a914a39b6ee518d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py8
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 2c9bc0bf90..98259ae515 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -132,9 +132,13 @@ class ReproducibleTests(OESelftestTestCase):
132 max_report_size = 250 * 1024 * 1024 132 max_report_size = 250 * 1024 * 1024
133 133
134 # targets are the things we want to test the reproducibility of 134 # targets are the things we want to test the reproducibility of
135 targets = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'core-image-weston', 'world'] 135 targets = get_bb_var("OEQA_REPRODUCIBLE_TEST_TARGET")
136 if targets:
137 targets = targets.split()
138 else:
139 targets = ['core-image-minimal', 'core-image-sato', 'core-image-full-cmdline', 'core-image-weston', 'world']
136 # sstate targets are things to pull from sstate to potentially cut build/debugging time 140 # sstate targets are things to pull from sstate to potentially cut build/debugging time
137 sstate_targets = [] 141 sstate_targets = (get_bb_var("OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS") or "").split()
138 save_results = False 142 save_results = False
139 if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ: 143 if 'OEQA_DEBUGGING_SAVED_OUTPUT' in os.environ:
140 save_results = os.environ['OEQA_DEBUGGING_SAVED_OUTPUT'] 144 save_results = os.environ['OEQA_DEBUGGING_SAVED_OUTPUT']