diff options
| author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-03-27 16:00:37 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-04-14 06:30:29 -1000 |
| commit | 74595f27bd8ffca0016024fe8f27bc72448e75e4 (patch) | |
| tree | 2bf1a5a4c3e6e1b9c349c78607d6a9866159fce2 | |
| parent | 980e07f0960167babfbcb5b29c6cdaa5111f9c1a (diff) | |
| download | poky-74595f27bd8ffca0016024fe8f27bc72448e75e4.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: a623217aa3297eb6c0616723901788dfd706e1d7)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit fd70a564d6946fa460638dd04ce2daecf4566cf3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -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: |
