@ -699,6 +699,22 @@ class AutopkgtestPolicy(BasePolicy):
reported_pkgs=set()
tests=[]
# We don't want to run tests for src packages on i386 if all of the binary packages
# have Architecture: all. These are redundant for real world use cases as these deps
# are satisfied by amd64 binaries
try:
ifarch=="i386":
all_binaries_arch_all=True
forpkg_idinsource_suite.sources[src]:
ifpkg_id.architecture!="all":
all_binaries_arch_all=False
ifall_binaries_arch_all:
self.logger.info('Source package %s has binaries which are all Architecture: all, and tests have been requested on %s, not running any tests for this src package',