Add Python static checks and unit tests to autopkgtest tests
This commit is contained in:
parent
5ac818997a
commit
91fad79906
|
@ -84,7 +84,9 @@ class Gencontrol(Base):
|
||||||
makeflags['SOURCE_BASENAME'] = self.vars['source_basename']
|
makeflags['SOURCE_BASENAME'] = self.vars['source_basename']
|
||||||
|
|
||||||
# Prepare to generate debian/tests/control
|
# Prepare to generate debian/tests/control
|
||||||
self.tests_control = None
|
self.tests_control = self.process_packages(
|
||||||
|
self.templates['tests-control.main'], vars)
|
||||||
|
self.tests_control_image = None
|
||||||
|
|
||||||
self.installer_packages = {}
|
self.installer_packages = {}
|
||||||
|
|
||||||
|
@ -512,10 +514,12 @@ class Gencontrol(Base):
|
||||||
tests_control['Depends'].append(
|
tests_control['Depends'].append(
|
||||||
PackageRelationGroup(image_main['Package'],
|
PackageRelationGroup(image_main['Package'],
|
||||||
override_arches=(arch,)))
|
override_arches=(arch,)))
|
||||||
if self.tests_control:
|
if self.tests_control_image:
|
||||||
self.tests_control['Depends'].extend(tests_control['Depends'])
|
self.tests_control_image['Depends'].extend(
|
||||||
|
tests_control['Depends'])
|
||||||
else:
|
else:
|
||||||
self.tests_control = tests_control
|
self.tests_control_image = tests_control
|
||||||
|
self.tests_control.append(tests_control)
|
||||||
|
|
||||||
def get_config(*entry_name):
|
def get_config(*entry_name):
|
||||||
entry_real = ('image',) + entry_name
|
entry_real = ('image',) + entry_name
|
||||||
|
@ -683,7 +687,7 @@ class Gencontrol(Base):
|
||||||
|
|
||||||
def write_tests_control(self):
|
def write_tests_control(self):
|
||||||
self.write_rfc822(open("debian/tests/control", 'w'),
|
self.write_rfc822(open("debian/tests/control", 'w'),
|
||||||
[self.tests_control])
|
self.tests_control)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -12,6 +12,7 @@ linux (4.19~rc6-1~exp1) UNRELEASED; urgency=medium
|
||||||
* debian/bin, debian/lib/python: Delete write-only vars reported by pyflakes
|
* debian/bin, debian/lib/python: Delete write-only vars reported by pyflakes
|
||||||
* debian/lib/python/debian_linux/gencontrol.py: Delete broken methods
|
* debian/lib/python/debian_linux/gencontrol.py: Delete broken methods
|
||||||
* debian/lib/python/debian_linux/config.py: Fix undefined exception type
|
* debian/lib/python/debian_linux/config.py: Fix undefined exception type
|
||||||
|
* Add Python static checks and unit tests to autopkgtest tests
|
||||||
|
|
||||||
-- Ben Hutchings <ben@decadent.org.uk> Thu, 20 Sep 2018 02:40:54 +0100
|
-- Ben Hutchings <ben@decadent.org.uk> Thu, 20 Sep 2018 02:40:54 +0100
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue