autopkgtest.py: return an empty list instead of tests

While tests is an empty list at this point we should make it more
obvious by returing an empty list which is what the rest of the code
does.
master
Brian Murray 5 months ago
parent 6128a2c8b7
commit 92d611c379

@ -712,7 +712,7 @@ class AutopkgtestPolicy(BasePolicy):
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', 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',
src, src,
arch) arch)
return tests return []
except Exception as e: except Exception as e:
self.logger.error('i386 useless autopkgtest check failed with: %s', e) self.logger.error('i386 useless autopkgtest check failed with: %s', e)

Loading…
Cancel
Save