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.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index ffb405af20..eee09d3fb2 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -82,15 +82,12 @@ class ReproducibleTests(OESelftestTestCase):
82 for v in needed_vars: 82 for v in needed_vars:
83 setattr(self, v.lower(), bb_vars[v]) 83 setattr(self, v.lower(), bb_vars[v])
84 84
85 if not hasattr(self.tc, "extraresults"): 85 self.extrasresults = {}
86 self.tc.extraresults = {} 86 self.extrasresults.setdefault('reproducible.rawlogs', {})['log'] = ''
87 self.extras = self.tc.extraresults 87 self.extrasresults.setdefault('reproducible', {}).setdefault('files', {})
88
89 self.extras.setdefault('reproducible.rawlogs', {})['log'] = ''
90 self.extras.setdefault('reproducible', {}).setdefault('files', {})
91 88
92 def append_to_log(self, msg): 89 def append_to_log(self, msg):
93 self.extras['reproducible.rawlogs']['log'] += msg 90 self.extrasresults['reproducible.rawlogs']['log'] += msg
94 91
95 def compare_packages(self, reference_dir, test_dir, diffutils_sysroot): 92 def compare_packages(self, reference_dir, test_dir, diffutils_sysroot):
96 result = PackageCompareResults() 93 result = PackageCompareResults()
@@ -117,7 +114,7 @@ class ReproducibleTests(OESelftestTestCase):
117 return result 114 return result
118 115
119 def write_package_list(self, package_class, name, packages): 116 def write_package_list(self, package_class, name, packages):
120 self.extras['reproducible']['files'].setdefault(package_class, {})[name] = [ 117 self.extrasresults['reproducible']['files'].setdefault(package_class, {})[name] = [
121 {'reference': p.reference, 'test': p.test} for p in packages] 118 {'reference': p.reference, 'test': p.test} for p in packages]
122 119
123 def test_reproducible_builds(self): 120 def test_reproducible_builds(self):