summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/reproducible.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/reproducible.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index a7ef336143..cd7be7d436 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -68,7 +68,7 @@ def compare_file(reference, test, diffutils_sysroot):
68 result.status = MISSING 68 result.status = MISSING
69 return result 69 return result
70 70
71 r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True) 71 r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True, sync=False)
72 72
73 if r.status: 73 if r.status:
74 result.status = DIFFERENT 74 result.status = DIFFERENT
@@ -184,9 +184,10 @@ class ReproducibleTests(OESelftestTestCase):
184 # mirror, forcing a complete build from scratch 184 # mirror, forcing a complete build from scratch
185 config += textwrap.dedent('''\ 185 config += textwrap.dedent('''\
186 SSTATE_DIR = "${TMPDIR}/sstate" 186 SSTATE_DIR = "${TMPDIR}/sstate"
187 SSTATE_MIRROR = "" 187 SSTATE_MIRRORS = ""
188 ''') 188 ''')
189 189
190 self.logger.info("Building %s (sstate%s allowed)..." % (name, '' if use_sstate else ' NOT'))
190 self.write_config(config) 191 self.write_config(config)
191 d = get_bb_vars(capture_vars) 192 d = get_bb_vars(capture_vars)
192 bitbake(' '.join(self.images)) 193 bitbake(' '.join(self.images))
@@ -213,6 +214,7 @@ class ReproducibleTests(OESelftestTestCase):
213 self.logger.info('Non-reproducible packages will be copied to %s', save_dir) 214 self.logger.info('Non-reproducible packages will be copied to %s', save_dir)
214 215
215 vars_A = self.do_test_build('reproducibleA', self.build_from_sstate) 216 vars_A = self.do_test_build('reproducibleA', self.build_from_sstate)
217
216 vars_B = self.do_test_build('reproducibleB', False) 218 vars_B = self.do_test_build('reproducibleB', False)
217 219
218 # NOTE: The temp directories from the reproducible build are purposely 220 # NOTE: The temp directories from the reproducible build are purposely
@@ -227,6 +229,7 @@ class ReproducibleTests(OESelftestTestCase):
227 deploy_A = vars_A['DEPLOY_DIR_' + c.upper()] 229 deploy_A = vars_A['DEPLOY_DIR_' + c.upper()]
228 deploy_B = vars_B['DEPLOY_DIR_' + c.upper()] 230 deploy_B = vars_B['DEPLOY_DIR_' + c.upper()]
229 231
232 self.logger.info('Checking %s packages for differences...' % c)
230 result = self.compare_packages(deploy_A, deploy_B, diffutils_sysroot) 233 result = self.compare_packages(deploy_A, deploy_B, diffutils_sysroot)
231 234
232 self.logger.info('Reproducibility summary for %s: %s' % (c, result)) 235 self.logger.info('Reproducibility summary for %s: %s' % (c, result))