Don't start the tests before arch:all has been build (if applicable)

This commit is contained in:
Paul Gevers 2018-04-25 21:50:46 +02:00
parent 022d6ed564
commit a4d0c4a854
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

View File

@ -202,6 +202,10 @@ class AutopkgtestPolicy(BasePolicy):
self.logger.info('%s hasn''t been built anywhere, skipping autopkgtest policy', excuse.name)
verdict = PolicyVerdict.REJECTED_TEMPORARILY
if 'all' in excuse.missing_builds:
self.logger.info('%s hasn''t been built for arch:all, skipping autopkgtest policy', source_name)
verdict = PolicyVerdict.REJECTED_TEMPORARILY
if verdict == PolicyVerdict.PASS:
self.logger.info('Checking autopkgtests for %s', source_name)
trigger = source_name + '/' + source_data_srcdist.version