diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-07 17:27:36 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-06-14 04:14:25 -1000 |
| commit | bb85801f7f15379f51a4853fc3aaaf928d9fa929 (patch) | |
| tree | 27b3cba7fc7e3c023adeb56011e774f3e409efce /meta/lib/oeqa | |
| parent | 387963e269f64f571983bb58e0ba7d39abe4d674 (diff) | |
| download | poky-bb85801f7f15379f51a4853fc3aaaf928d9fa929.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: ea3d21235633dc5b01c6ce39e768d00d1da5d87a)
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/oeqa')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/reproducible.py | 4 |
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')) |
