summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 14:55:59 +0000
committerSteve Sakoman <steve@sakoman.com>2024-12-09 07:54:03 -0800
commitbce96f15ef3b9f18749928df7a1aa86256bcfb41 (patch)
tree3eaf25afdd5a0a855524b67a892b0b77c245d2dd
parent2593929542920e4943f316691bb0032e1001c29a (diff)
downloadpoky-bce96f15ef3b9f18749928df7a1aa86256bcfb41.tar.gz
selftest/reproducible: Clean up pathnames
There are several problems with these paths. Firstly they contain full system paths which depend upon where the test was run. These are pretty pointless and just take up a lot of space making the results files large. Secondly, they contain the same path twice. The reference and target path will always be the same thing in two different locations. Strip off the prefix and remove the duplication. This does change the output data but that can't really be avoided. It does shrink the results data and makes it more readable. (From OE-Core rev: 13d844b15deba49a54676fa6f83ab4526ec74b9a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 81a44de36e864b08687451fd85aeba7c529fd7f7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 df7d9cc159..08c23227d3 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -191,7 +191,7 @@ class ReproducibleTests(OESelftestTestCase):
191 191
192 def write_package_list(self, package_class, name, packages): 192 def write_package_list(self, package_class, name, packages):
193 self.extraresults['reproducible']['files'].setdefault(package_class, {})[name] = [ 193 self.extraresults['reproducible']['files'].setdefault(package_class, {})[name] = [
194 {'reference': p.reference, 'test': p.test} for p in packages] 194 p.reference.split("/./")[1] for p in packages]
195 195
196 def copy_file(self, source, dest): 196 def copy_file(self, source, dest):
197 bb.utils.mkdirhier(os.path.dirname(dest)) 197 bb.utils.mkdirhier(os.path.dirname(dest))