diff options
Diffstat (limited to 'meta/lib/patchtest/tests/test_metadata_summary.py')
-rw-r--r-- | meta/lib/patchtest/tests/test_metadata_summary.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meta/lib/patchtest/tests/test_metadata_summary.py b/meta/lib/patchtest/tests/test_metadata_summary.py deleted file mode 100644 index 170e79eb4b..0000000000 --- a/meta/lib/patchtest/tests/test_metadata_summary.py +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | # Checks related to the patch's summary metadata variable | ||
2 | # | ||
3 | # Copyright (C) 2016 Intel Corporation | ||
4 | # | ||
5 | # SPDX-License-Identifier: GPL-2.0-only | ||
6 | |||
7 | import base | ||
8 | from data import PatchTestInput | ||
9 | |||
10 | class Summary(base.Metadata): | ||
11 | metadata = 'SUMMARY' | ||
12 | |||
13 | def test_summary_presence(self): | ||
14 | if not self.added: | ||
15 | self.skip('No added recipes, skipping test') | ||
16 | |||
17 | for pn in self.added: | ||
18 | # we are not interested in images | ||
19 | if 'core-image' in pn: | ||
20 | continue | ||
21 | rd = self.tinfoil.parse_recipe(pn) | ||
22 | summary = rd.getVar(self.metadata) | ||
23 | |||
24 | # "${PN} version ${PN}-${PR}" is the default, so fail if default | ||
25 | if summary.startswith('%s version' % pn): | ||
26 | self.fail('%s is missing in newly added recipe' % self.metadata) | ||