autopkgtest: also test for autodep8 for migration runs

This commit is contained in:
Paul Gevers 2019-11-21 11:40:00 +01:00
parent b380508635
commit 177b65d674
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

View File

@ -1064,7 +1064,7 @@ class AutopkgtestPolicy(BasePolicy):
test_in_target = False
try:
srcinfo = self.suite_info.target_suite.sources[src]
if 'autopkgtest' in srcinfo.testsuite:
if 'autopkgtest' in srcinfo.testsuite or self.has_autodep8(srcinfo):
test_in_target = True
except KeyError:
pass