summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-07 17:27:36 +0100
committerSteve Sakoman <steve@sakoman.com>2023-06-14 04:17:00 -1000
commit51d6afc92f621657f800171a992cea7708261d31 (patch)
tree9e15381fd8b7c3145cc41e22d736088b94014f15 /meta/lib
parent933033e54e4c0e1b5f2703c070c53fd5340c34c3 (diff)
downloadpoky-51d6afc92f621657f800171a992cea7708261d31.tar.gz
selftest/reproducible: Allow native/cross reuse in test
We don't compare reproducibility of the native/cross components, only the target ones. With the long build times of rust-native, the test now takes crazy lengths of time so this tweak should allow us to reuse native/cross artefacts from sstate whilst still testing the target output is reproducible. (From OE-Core rev: 18a9596ae711ba37ac7e44e46744298ba79ae320) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b494d83c639a877cefeb7cbab6d37195e492f059) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index 5042c11d8e..2c9bc0bf90 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -149,7 +149,7 @@ class ReproducibleTests(OESelftestTestCase):
149 149
150 def setUpLocal(self): 150 def setUpLocal(self):
151 super().setUpLocal() 151 super().setUpLocal()
152 needed_vars = ['TOPDIR', 'TARGET_PREFIX', 'BB_NUMBER_THREADS'] 152 needed_vars = ['TOPDIR', 'TARGET_PREFIX', 'BB_NUMBER_THREADS', 'BB_HASHSERVE']
153 bb_vars = get_bb_vars(needed_vars) 153 bb_vars = get_bb_vars(needed_vars)
154 for v in needed_vars: 154 for v in needed_vars:
155 setattr(self, v.lower(), bb_vars[v]) 155 setattr(self, v.lower(), bb_vars[v])
@@ -223,7 +223,7 @@ class ReproducibleTests(OESelftestTestCase):
223 # mirror, forcing a complete build from scratch 223 # mirror, forcing a complete build from scratch
224 config += textwrap.dedent('''\ 224 config += textwrap.dedent('''\
225 SSTATE_DIR = "${TMPDIR}/sstate" 225 SSTATE_DIR = "${TMPDIR}/sstate"
226 SSTATE_MIRRORS = "" 226 SSTATE_MIRRORS = "file://.*/.*-native.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH file://.*/.*-cross.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
227 ''') 227 ''')
228 228
229 self.logger.info("Building %s (sstate%s allowed)..." % (name, '' if use_sstate else ' NOT')) 229 self.logger.info("Building %s (sstate%s allowed)..." % (name, '' if use_sstate else ' NOT'))