mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
patchtest: test regardless of mergeability
(From OE-Core rev: 06d2066a5061d23a316f65cfc731ce44b576b2bf) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dc089073eb120de76c8907e476c341ed3e97c164) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
a7a7320737
commit
5972abb328
@@ -15,11 +15,6 @@ class LicFilesChkSum(base.Metadata):
|
|||||||
lictag = 'License-Update'
|
lictag = 'License-Update'
|
||||||
lictag_re = pyparsing.Regex("^%s:" % lictag)
|
lictag_re = pyparsing.Regex("^%s:" % lictag)
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
# these tests just make sense on patches that can be merged
|
|
||||||
if not PatchTestInput.repo.canbemerged:
|
|
||||||
self.skip('Patch cannot be merged')
|
|
||||||
|
|
||||||
def test_lic_files_chksum_presence(self):
|
def test_lic_files_chksum_presence(self):
|
||||||
if not self.added:
|
if not self.added:
|
||||||
self.skip('No added recipes, skipping test')
|
self.skip('No added recipes, skipping test')
|
||||||
|
|||||||
@@ -12,11 +12,6 @@ class License(base.Metadata):
|
|||||||
metadata = 'LICENSE'
|
metadata = 'LICENSE'
|
||||||
invalid_license = 'PATCHTESTINVALID'
|
invalid_license = 'PATCHTESTINVALID'
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
# these tests just make sense on patches that can be merged
|
|
||||||
if not PatchTestInput.repo.canbemerged:
|
|
||||||
self.skip('Patch cannot be merged')
|
|
||||||
|
|
||||||
def test_license_presence(self):
|
def test_license_presence(self):
|
||||||
if not self.added:
|
if not self.added:
|
||||||
self.skip('No added recipes, skipping test')
|
self.skip('No added recipes, skipping test')
|
||||||
|
|||||||
@@ -10,11 +10,6 @@ from data import PatchTestInput
|
|||||||
class Summary(base.Metadata):
|
class Summary(base.Metadata):
|
||||||
metadata = 'SUMMARY'
|
metadata = 'SUMMARY'
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
# these tests just make sense on patches that can be merged
|
|
||||||
if not PatchTestInput.repo.canbemerged:
|
|
||||||
self.skip('Patch cannot be merged')
|
|
||||||
|
|
||||||
def test_summary_presence(self):
|
def test_summary_presence(self):
|
||||||
if not self.added:
|
if not self.added:
|
||||||
self.skip('No added recipes, skipping test')
|
self.skip('No added recipes, skipping test')
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ class PyLint(base.Base):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
if self.unidiff_parse_error:
|
if self.unidiff_parse_error:
|
||||||
self.skip('Python-unidiff parse error')
|
self.skip('Python-unidiff parse error')
|
||||||
if not PatchTestInput.repo.canbemerged:
|
|
||||||
self.skip('Patch cannot be merged, no reason to execute the test method')
|
|
||||||
if not PyLint.pythonpatches:
|
if not PyLint.pythonpatches:
|
||||||
self.skip('No python related patches, skipping test')
|
self.skip('No python related patches, skipping test')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user