diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-03-27 16:00:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-28 22:28:45 +0100 |
commit | 2ba13d944711783b00b5ac1bab6364597b4f3e28 (patch) | |
tree | be8a8a78d71ffcfab9e9f96de26631e69ef2e56d /meta/lib/oeqa/selftest/cases/reproducible.py | |
parent | f5f465ff5777eb99941db3dda84e65d4699d97f7 (diff) | |
download | poky-2ba13d944711783b00b5ac1bab6364597b4f3e28.tar.gz |
oeqa/selftest/reproducible: Split different packages from missing packages output
When we provide sstate_targets recipes they are reported as missing
which is not quite correct because they are proveided to cut build/debugging time.
(From OE-Core rev: fd70a564d6946fa460638dd04ce2daecf4566cf3)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/reproducible.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/reproducible.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py index f4dd779842..cd7aa8aafa 100644 --- a/meta/lib/oeqa/selftest/cases/reproducible.py +++ b/meta/lib/oeqa/selftest/cases/reproducible.py | |||
@@ -292,9 +292,13 @@ class ReproducibleTests(OESelftestTestCase): | |||
292 | self.copy_file(d.reference, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.reference)])) | 292 | self.copy_file(d.reference, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.reference)])) |
293 | self.copy_file(d.test, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.test)])) | 293 | self.copy_file(d.test, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.test)])) |
294 | 294 | ||
295 | if result.missing or result.different: | 295 | if result.different: |
296 | fails.append("The following %s packages are missing or different and not in exclusion list: %s" % | 296 | fails.append("The following %s packages are different and not in exclusion list:\n%s" % |
297 | (c, '\n'.join(r.test for r in (result.missing + result.different)))) | 297 | (c, '\n'.join(r.test for r in (result.different)))) |
298 | |||
299 | if result.missing and len(self.sstate_targets) == 0: | ||
300 | fails.append("The following %s packages are missing and not in exclusion list:\n%s" % | ||
301 | (c, '\n'.join(r.test for r in (result.missing)))) | ||
298 | 302 | ||
299 | # Clean up empty directories | 303 | # Clean up empty directories |
300 | if self.save_results: | 304 | if self.save_results: |