From 92d611c3795984a88f578fc0e83f7b73275690ed Mon Sep 17 00:00:00 2001 From: Brian Murray Date: Tue, 6 Aug 2024 09:02:22 -0700 Subject: [PATCH] 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. --- britney2/policies/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 44ea436..8864bff 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -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', src, arch) - return tests + return [] except Exception as e: self.logger.error('i386 useless autopkgtest check failed with: %s', e)