Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | # |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
| 7 | # |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 8 | # This class is used by yocto-check-layer script for additional per-recipe tests |
| 9 | # The first test ensures that the layer has no recipes skipping 'installed-vs-shipped' QA checks |
| 10 | # |
| 11 | |
| 12 | WARN_QA:remove = "installed-vs-shipped" |
| 13 | ERROR_QA:append = " installed-vs-shipped" |
| 14 | |
| 15 | python () { |
| 16 | packages = set((d.getVar('PACKAGES') or '').split()) |
| 17 | for package in packages: |
| 18 | skip = set((d.getVar('INSANE_SKIP') or "").split() + |
| 19 | (d.getVar('INSANE_SKIP:' + package) or "").split()) |
| 20 | if 'installed-vs-shipped' in skip: |
| 21 | oe.qa.handle_error("installed-vs-shipped", 'Package %s is skipping "installed-vs-shipped" QA test.' % package, d) |
| 22 | } |