autopkgtest: Ignore triggers without a forward slash

They are manual triggers in the name of britney, most likely by mistake (but
those happen).

Closes: #905600
ubuntu/rebased
Paul Gevers 7 years ago
parent f67fc00292
commit 0868962ee3
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -666,7 +666,11 @@ class AutopkgtestPolicy(BasePolicy):
# If a test runs because of its own package (newer version), ensure # If a test runs because of its own package (newer version), ensure
# that we got a new enough version; FIXME: this should be done more # that we got a new enough version; FIXME: this should be done more
# generically by matching against testpkg-versions # generically by matching against testpkg-versions
try:
(trigsrc, trigver) = trigger.split('/', 1) (trigsrc, trigver) = trigger.split('/', 1)
except ValueError:
self.logger.error('Ignoring invalid test trigger %s', trigger)
return
if trigsrc == src and apt_pkg.version_compare(ver, trigver) < 0: if trigsrc == src and apt_pkg.version_compare(ver, trigver) < 0:
self.logger.error('test trigger %s, but run for older version %s, ignoring', trigger, ver) self.logger.error('test trigger %s, but run for older version %s, ignoring', trigger, ver)
return return

Loading…
Cancel
Save