diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-21 14:55:59 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-12-09 06:25:53 -0800 |
commit | d666d72ba269d92701386e029d03116c3c95ed01 (patch) | |
tree | bb7ddfb300d017d2e8bdf6976170eb8a05ed5fe6 /meta/lib/oeqa | |
parent | 78809626ecb14646a06e83c8faad3d3475d1d22a (diff) | |
download | poky-d666d72ba269d92701386e029d03116c3c95ed01.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: 40b422edd954eeb917464e6baa0e952d2ed4184c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 81a44de36e864b08687451fd85aeba7c529fd7f7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/reproducible.py | 2 |
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 ed73184b37..92266ab66a 100644 --- a/meta/lib/oeqa/selftest/cases/reproducible.py +++ b/meta/lib/oeqa/selftest/cases/reproducible.py | |||
@@ -205,7 +205,7 @@ class ReproducibleTests(OESelftestTestCase): | |||
205 | 205 | ||
206 | def write_package_list(self, package_class, name, packages): | 206 | def write_package_list(self, package_class, name, packages): |
207 | self.extraresults['reproducible']['files'].setdefault(package_class, {})[name] = [ | 207 | self.extraresults['reproducible']['files'].setdefault(package_class, {})[name] = [ |
208 | {'reference': p.reference, 'test': p.test} for p in packages] | 208 | p.reference.split("/./")[1] for p in packages] |
209 | 209 | ||
210 | def copy_file(self, source, dest): | 210 | def copy_file(self, source, dest): |
211 | bb.utils.mkdirhier(os.path.dirname(dest)) | 211 | bb.utils.mkdirhier(os.path.dirname(dest)) |