From: Jose Quaresma Date: Mon, 27 Mar 2023 16:00:37 +0000 (+0000) Subject: oeqa/selftest/reproducible: Split different packages from missing packages output X-Git-Tag: 2023-04-mickledore~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd70a564d6946fa460638dd04ce2daecf4566cf3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Jose Quaresma Signed-off-by: Alexandre Belloni --- diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py index f4dd779842a..cd7aa8aafa7 100644 --- a/meta/lib/oeqa/selftest/cases/reproducible.py +++ b/meta/lib/oeqa/selftest/cases/reproducible.py @@ -292,9 +292,13 @@ class ReproducibleTests(OESelftestTestCase): self.copy_file(d.reference, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.reference)])) self.copy_file(d.test, '/'.join([save_dir, 'packages-excluded', strip_topdir(d.test)])) - if result.missing or result.different: - fails.append("The following %s packages are missing or different and not in exclusion list: %s" % - (c, '\n'.join(r.test for r in (result.missing + result.different)))) + if result.different: + fails.append("The following %s packages are different and not in exclusion list:\n%s" % + (c, '\n'.join(r.test for r in (result.different)))) + + if result.missing and len(self.sstate_targets) == 0: + fails.append("The following %s packages are missing and not in exclusion list:\n%s" % + (c, '\n'.join(r.test for r in (result.missing)))) # Clean up empty directories if self.save_results: