summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-08-30 20:41:24 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-06 08:24:44 +0100
commit6b8e0077339a89cb01aa40c1b367a4e41a638892 (patch)
tree1cb67c80393ebc1bbae1307705b72f7ee1477ce6 /meta/lib
parent7e75ed5aec86b94fe7fadbed606619f84a2e58e7 (diff)
downloadopenembedded-core-contrib-6b8e0077339a89cb01aa40c1b367a4e41a638892.tar.gz
oeqa: reproducible: Preserve sstate mirror for first build
Preserves the SSTATE_MIRROR variable for the first build in the reproducible test. This patch is intended to test the theory that using the Yocto autobuilder sstate mirror will still be reproducible. The autobuilder always does clean builds and never rebuilds recipes that were built previously, thus building with the mirror but not sharing tmpdir and sstate with previous builds should be reproducible. There is no guarantee that all sstate caches are populated from clean builds so this patch cannot be submitted to master, and I'm not bothering sending it to the mailing list. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index b3bbb70158..ffb405af20 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -134,7 +134,6 @@ class ReproducibleTests(OESelftestTestCase):
INHERIT += "reproducible_build"
PACKAGE_CLASSES = "%s"
SSTATE_DIR = "${TMPDIR}/sstate"
- SSTATE_MIRROR = ""
''') % (' '.join('package_%s' % c for c in self.package_classes))
# Perform a build.
@@ -154,6 +153,7 @@ class ReproducibleTests(OESelftestTestCase):
bb.utils.remove(reproducibleB_tmp, recurse=True)
self.write_config((textwrap.dedent('''\
+ SSTATE_MIRROR = ""
TMPDIR = "%s"
''') % reproducibleB_tmp) + common_config)
vars_B = get_bb_vars(capture_vars)