summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/reproducible.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-07 17:27:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-07 23:41:20 +0100
commit00f3d5806456f3814eb909eb96a85ceeeaba01e5 (patch)
treecacba13088a29cc1f83dabbc49ef734d855c4262 /meta/lib/oeqa/selftest/cases/reproducible.py
parentad31564d41dbef4b66a5bf88d05bd643adb3ab92 (diff)
downloadpoky-00f3d5806456f3814eb909eb96a85ceeeaba01e5.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: b494d83c639a877cefeb7cbab6d37195e492f059) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/reproducible.py')
-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 cd7aa8aafa..1f0ed32fa0 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -151,7 +151,7 @@ class ReproducibleTests(OESelftestTestCase):
151 151
152 def setUpLocal(self): 152 def setUpLocal(self):
153 super().setUpLocal() 153 super().setUpLocal()
154 needed_vars = ['TOPDIR', 'TARGET_PREFIX', 'BB_NUMBER_THREADS'] 154 needed_vars = ['TOPDIR', 'TARGET_PREFIX', 'BB_NUMBER_THREADS', 'BB_HASHSERVE']
155 bb_vars = get_bb_vars(needed_vars) 155 bb_vars = get_bb_vars(needed_vars)
156 for v in needed_vars: 156 for v in needed_vars:
157 setattr(self, v.lower(), bb_vars[v]) 157 setattr(self, v.lower(), bb_vars[v])
@@ -225,7 +225,7 @@ class ReproducibleTests(OESelftestTestCase):
225 # mirror, forcing a complete build from scratch 225 # mirror, forcing a complete build from scratch
226 config += textwrap.dedent('''\ 226 config += textwrap.dedent('''\
227 SSTATE_DIR = "${TMPDIR}/sstate" 227 SSTATE_DIR = "${TMPDIR}/sstate"
228 SSTATE_MIRRORS = "" 228 SSTATE_MIRRORS = "file://.*/.*-native.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH file://.*/.*-cross.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
229 ''') 229 ''')
230 230
231 self.logger.info("Building %s (sstate%s allowed)..." % (name, '' if use_sstate else ' NOT')) 231 self.logger.info("Building %s (sstate%s allowed)..." % (name, '' if use_sstate else ' NOT'))